@@ -3,9 +3,8 @@ import { FormattedMessage } from 'react-intl';
3
3
4
4
import styled from 'styled-components' ;
5
5
6
- import { spacingsPx } from '@trezor/theme' ;
6
+ import { spacingsPx , typography } from '@trezor/theme' ;
7
7
8
- import { variables } from '../config' ;
9
8
import { Card } from './Card/Card' ;
10
9
import { CollapsibleBox } from './CollapsibleBox/CollapsibleBox' ;
11
10
import { Button } from './buttons/Button/Button' ;
@@ -32,30 +31,23 @@ const ButtonWrapper = styled.div`
32
31
align-self: center;
33
32
` ;
34
33
35
- const StyledButton = styled ( Button ) `
36
- min-width: 180px;
37
- ` ;
38
-
39
34
const Label = styled . span `
40
35
margin-left: ${ spacingsPx . lg } ;
41
- font-size: ${ variables . FONT_SIZE . SMALL } ;
42
- font-weight: ${ variables . FONT_WEIGHT . MEDIUM } ;
43
- color: ${ ( { theme } ) => theme . legacy . TYPE_DARK_GREY } ;
36
+ ${ typography . hint } ;
37
+ color: ${ ( { theme } ) => theme . textDefault } ;
44
38
align-items: center;
45
39
display: flex;
46
40
` ;
47
41
48
42
const Heading = styled . h2 `
49
- font-size: ${ variables . FONT_SIZE . SMALL } ;
50
- font-weight: ${ variables . FONT_WEIGHT . DEMI_BOLD } ;
51
- color: ${ ( { theme } ) => theme . legacy . TYPE_DARK_GREY } ;
43
+ ${ typography . callout } ;
44
+ color: ${ ( { theme } ) => theme . textDefault } ;
52
45
text-align: left;
53
46
` ;
54
47
55
48
const Description = styled . span `
56
- font-size: ${ variables . FONT_SIZE . SMALL } ;
57
- font-weight: ${ variables . FONT_WEIGHT . MEDIUM } ;
58
- color: ${ ( { theme } ) => theme . legacy . TYPE_LIGHT_GREY } ;
49
+ ${ typography . hint } ;
50
+ color: ${ ( { theme } ) => theme . textSubdued } ;
59
51
` ;
60
52
61
53
const Category = styled . div `
@@ -185,12 +177,13 @@ export const DataAnalytics = ({
185
177
</ ContentWrapper >
186
178
187
179
< ButtonWrapper >
188
- < StyledButton
180
+ < Button
189
181
data-testid = "@analytics/continue-button"
190
182
onClick = { ( ) => onConfirm ( trackingEnabled ) }
183
+ minWidth = { 180 }
191
184
>
192
185
< FormattedMessage id = "TR_CONFIRM" defaultMessage = "Confirm" />
193
- </ StyledButton >
186
+ </ Button >
194
187
</ ButtonWrapper >
195
188
</ Wrapper >
196
189
</ Card >
0 commit comments