Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
136 additions
and
108 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
packages/blockchain-wallet-v4-frontend/src/modals/Interest/WithdrawalForm/model.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,110 @@ | ||
import { BaseFieldProps, Field } from 'redux-form' | ||
|
||
import styled from 'styled-components' | ||
|
||
import { Icon, Text } from 'blockchain-info-components' | ||
|
||
import { FlyoutWrapper } from 'components/Flyout' | ||
import { Form, FormLabel } from 'components/Form' | ||
|
||
export const SendingWrapper = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
align-items: center; | ||
justify-content: center; | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
export const CustomForm = styled(Form)` | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
export const Top = styled(FlyoutWrapper)` | ||
padding-bottom: 0; | ||
` | ||
export const Wrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
` | ||
export const ArrowIcon = styled(Icon)` | ||
margin-right: 20px; | ||
` | ||
export const BalanceWrapper = styled.div` | ||
display: flex; | ||
margin-top: 40px; | ||
padding-bottom: 20px; | ||
border-bottom: 1px solid ${props => props.theme.grey000}; | ||
` | ||
export const BalanceItem = styled.div` | ||
width: 100%; | ||
&:last-child { | ||
margin-left: 32px; | ||
} | ||
` | ||
export const MaxAmountContainer = styled.div` | ||
display: flex; | ||
margin-top: 24px; | ||
` | ||
export const AmountAvailContainer = styled.div` | ||
cursor: pointer; | ||
display: inline-block; | ||
padding: 4px 8px; | ||
border-radius: 20px; | ||
background-color: ${props => props.theme.grey000}; | ||
` | ||
export const Spacer = styled.div` | ||
height: 48px; | ||
border-right: 1px solid ${props => props.theme.grey000}; | ||
` | ||
export const Bottom = styled(FlyoutWrapper)` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-end; | ||
height: 100%; | ||
` | ||
export const CustomFormLabel = styled(FormLabel)` | ||
display: block; | ||
margin-top: 24px; | ||
margin-bottom: 10px; | ||
` | ||
export const CustomField = styled(Field)<BaseFieldProps>` | ||
> input { | ||
padding-left: 45px; | ||
} | ||
` | ||
export const AmountFieldContainer = styled.div` | ||
display: flex; | ||
position: relative; | ||
` | ||
export const PrincipalCcyAbsolute = styled.div` | ||
position: absolute; | ||
top: 16px; | ||
left: 16px; | ||
` | ||
export const NetworkFee = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
` | ||
export const Availability = styled.div` | ||
margin-top: 24px; | ||
` | ||
export const ButtonContainer = styled.div<{ isOpacityApplied?: boolean }>` | ||
display: flex; | ||
justify-content: space-between; | ||
margin-top: 32px; | ||
opacity: ${({ isOpacityApplied }) => (isOpacityApplied ? 0.25 : 1)}; | ||
> button { | ||
padding: 15px !important; | ||
} | ||
` | ||
export const ToggleCoinFiat = styled(Text)` | ||
font-size: 14px; | ||
font-weight: 500; | ||
color: ${props => props.theme.blue600}; | ||
cursor: pointer; | ||
display: inline; | ||
padding: 5px; | ||
border: 1px solid ${({ theme }) => theme.grey000}; | ||
margin: 0 0 5px 5px; | ||
` |
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