-
Notifications
You must be signed in to change notification settings - Fork 502
/
model.tsx
67 lines (58 loc) · 1.52 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
import styled from 'styled-components'
import { ErrorCartridge, GreyCartridge } from 'components/Cartridge'
import { TableCell, Text } from 'blockchain-info-components'
import CoinDisplay from 'components/Display/CoinDisplay'
import FiatDisplay from 'components/Display/FiatDisplay'
export const AmountTableCell = styled(TableCell)`
flex-direction: column;
align-items: flex-end;
`
export const CoinAmountWrapper = styled(CoinDisplay)`
justify-content: flex-end;
`
export const FiatAmountWrapper = styled(FiatDisplay)`
justify-content: flex-end;
`
export const IconBackground = styled.div<{ color: string }>`
display: flex;
justify-content: center;
align-items: center;
width: 32px;
height: 32px;
min-width: 32px;
border-radius: 32px;
background: ${props => props.theme[props.color]};
`
export const PendingTag = styled(GreyCartridge)`
font-size: 12px;
margin-left: 8px;
`
export const ErrorTag = styled(ErrorCartridge)`
font-size: 12px;
margin-left: 8px;
`
export const Value = styled(Text)`
font-size: 14px;
font-weight: 500;
white-space: nowrap;
color: ${props => props.theme.grey600};
line-height: 1.5;
* {
font-size: 14px !important;
font-weight: 500 !important;
color: ${props => props.theme.grey600} !important;
}
`
export const InterestTableCell = styled(TableCell)`
align-items: center;
> ${Value} {
margin-left: 20px;
}
`
export const ViewTransaction = styled(Text)`
display: flex;
justify-content: flex-end;
font-size: 12px;
font-weight: 600;
cursor: pointer;
`