Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: moved common styles to SimpleBuy component
- Loading branch information
Showing
12 changed files
with
91 additions
and
53 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/blockchain-wallet-v4-frontend/src/components/SimpleBuy/Content.tsx
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 @@ | ||
import styled from 'styled-components' | ||
|
||
const Content = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
color: ${props => props.theme.grey800}; | ||
margin-left: 16px; | ||
min-width: 336px; | ||
` | ||
|
||
export default Content |
17 changes: 17 additions & 0 deletions
17
packages/blockchain-wallet-v4-frontend/src/components/SimpleBuy/DisplayContainer.tsx
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,17 @@ | ||
import styled from 'styled-components' | ||
|
||
const DisplayContainer = styled.div` | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
box-sizing: border-box; | ||
padding: 16px 40px; | ||
flex-direction: row; | ||
cursor: pointer; | ||
border-bottom: 1px solid ${props => props.theme.grey000}; | ||
&hover { | ||
background-color: ${props => props.theme.grey100}; | ||
} | ||
` | ||
|
||
export default DisplayContainer |
13 changes: 13 additions & 0 deletions
13
packages/blockchain-wallet-v4-frontend/src/components/SimpleBuy/DisplayIcon.tsx
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,13 @@ | ||
import styled from 'styled-components' | ||
|
||
const DisplayIcon = styled.div` | ||
position: relative; | ||
display: flex; | ||
flex-direction: column; | ||
font-size: 16px; | ||
font-weight: 500; | ||
max-width: 32px; | ||
color: ${props => props.theme.grey800}; | ||
` | ||
|
||
export default DisplayIcon |
14 changes: 14 additions & 0 deletions
14
packages/blockchain-wallet-v4-frontend/src/components/SimpleBuy/DisplayTitle.tsx
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,14 @@ | ||
import { Title } from 'components/Flyout' | ||
import styled from 'styled-components' | ||
|
||
const DisplayTitle = styled(Title)` | ||
align-items: left; | ||
font-weight: 600; | ||
font-size: 16px; | ||
display: flex; | ||
flex-direction: column; | ||
color: ${props => props.theme.textBlack}; | ||
width: 100%; | ||
` | ||
|
||
export default DisplayTitle |
6 changes: 6 additions & 0 deletions
6
packages/blockchain-wallet-v4-frontend/src/components/SimpleBuy/index.tsx
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,6 @@ | ||
import Content from './Content' | ||
import DisplayContainer from './DisplayContainer' | ||
import DisplayIcon from './DisplayIcon' | ||
import DisplayTitle from './DisplayTitle' | ||
|
||
export { DisplayIcon, DisplayContainer, Content, DisplayTitle } |
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
8 changes: 6 additions & 2 deletions
8
...ain-wallet-v4-frontend/src/modals/SimpleBuy/PaymentMethods/Payments/BankAccount/index.tsx
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
7 changes: 5 additions & 2 deletions
7
...blockchain-wallet-v4-frontend/src/modals/SimpleBuy/PaymentMethods/Payments/Card/index.tsx
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
7 changes: 5 additions & 2 deletions
7
...blockchain-wallet-v4-frontend/src/modals/SimpleBuy/PaymentMethods/Payments/Fund/index.tsx
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
8 changes: 6 additions & 2 deletions
8
...ain-wallet-v4-frontend/src/modals/SimpleBuy/PaymentMethods/Payments/PaymentCard/index.tsx
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