-
Notifications
You must be signed in to change notification settings - Fork 504
/
model.tsx
150 lines (141 loc) · 3.32 KB
/
model.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import { BaseFieldProps, Field } from 'redux-form'
import styled from 'styled-components'
import { Icon, Text } from 'blockchain-info-components'
import { CustomCartridge } from 'components/Cartridge'
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 TopText = styled(Text)`
display: flex;
width: 100%;
align-items: center;
`
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;
`
export const CustomField = styled(Field)<BaseFieldProps>`
> input {
padding-left: 42px;
}
> div:last-child {
display: none;
}
`
export const AmountFieldContainer = styled.div`
display: flex;
position: relative;
`
export const PrincipalCcyAbsolute = styled.div`
position: absolute;
top: 16px;
left: 12px;
`
export const MaxAmountContainer = styled.div`
display: flex;
justify-content: flex-start;
margin: 5px 0;
`
export const FiatMaxContainer = styled.div`
cursor: pointer;
display: inline-block;
padding: 4px 8px;
border-radius: 20px;
background-color: ${props => props.theme.grey000};
`
export const CalculatorWrapper = styled.div`
display: flex;
flex-direction: column;
margin-top: 28px;
`
export const CalculatorHeaderContainer = styled.div`
display: flex;
flex-direction: row;
align-items: center;
`
export const CalculatorDesc = styled(Text)`
margin: 6px 0 8px;
`
export const CalculatorContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
padding: 16px;
background-color: ${props => props.theme.greyFade000};
border: 1px solid ${({ theme }) => theme.grey000};
box-sizing: border-box;
border-radius: 8px;
`
export const AmountError = styled.div`
margin: 2px 5px 0 0;
display: flex;
align-items: center;
justify-content: flex-start;
`
export const GreyBlueCartridge = styled(CustomCartridge)`
background-color: ${props => props.theme.white};
border: 1px solid ${props => props.theme.grey100};
color: ${props => props.theme.blue600};
cursor: pointer;
margin-left: 10px;
`
export const InterestTermWrapper = styled.div`
display: flex;
`
export const InterestTermContainer = styled.div`
display: flex;
flex-direction: column;
justify-content: space-around;
border-right: 1px solid ${({ theme }) => theme.grey000};
margin-right: 16px;
width: 114px;
height: 48px;
&:last-child {
border-right: 1px solid transparent;
margin-right: 0;
}
`
export const TermsContainer = styled.div`
margin: -3px 0 24px 0;
& > * {
display: inline-block;
}
`
export const AgreementContainer = styled.div`
margin-top: -3px;
& > * {
display: inline-block;
}
`
export const ArrowIcon = styled(Icon)`
margin-right: 20px;
`
export const ButtonContainer = styled.div`
display: flex;
justify-content: space-between;
margin-top: 32px;
> button {
padding: 15px !important;
}
`