-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ECE] Add Stripe Link Support on Block Cart and Block Checkout pages (#…
…3540) * Add Stripe Link to block pages * Update comments * Fix comment * Fix comments * Add Stripe link preview * Add blank line to bottom of scss file * Add changelog entries * Add hover styling to give illusion of a button * Remove extra line
- Loading branch information
1 parent
ba36d78
commit ba01a9b
Showing
10 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions
11
client/blocks/express-checkout/stripe-link-preview/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* eslint-disable max-len */ | ||
import icon from './icon.svg'; | ||
import './style.scss'; | ||
|
||
const useStripeLinkPreview = () => ( | ||
<div className="stripe-link-preview"> | ||
<img src={ icon } alt="" /> | ||
</div> | ||
); | ||
|
||
export default useStripeLinkPreview; |
12 changes: 12 additions & 0 deletions
12
client/blocks/express-checkout/stripe-link-preview/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.stripe-link-preview { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: #00d66f; | ||
border-radius: 5px; | ||
height: 40px; | ||
&:hover { | ||
cursor: pointer; | ||
filter: opacity(0.7); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters