@@ -4,12 +4,10 @@ import { useSelector } from 'react-redux';
44
55import {
66 Caption13M ,
7+ Caption13Up ,
78 Display ,
8- Headline ,
99 Text01M ,
10- Text01S ,
1110 Text02M ,
12- Text02S ,
1311 Title ,
1412} from '../styles/text' ;
1513import { BIcon , LightningIcon } from '../styles/icons' ;
@@ -36,13 +34,11 @@ interface IMoney {
3634 testID ?: string ;
3735 size ?:
3836 | 'display'
39- | 'text01s'
4037 | 'text01m'
41- | 'text02s'
4238 | 'text02m'
4339 | 'caption13M'
44- | 'title '
45- | 'headline ' ;
40+ | 'caption13Up '
41+ | 'title ' ;
4642}
4743
4844const Money = ( props : IMoney ) : ReactElement => {
@@ -68,20 +64,15 @@ const Money = (props: IMoney): ReactElement => {
6864
6965 const [ Text , lineHeight , iconHeight , iconWidth ] = useMemo ( ( ) => {
7066 switch ( size ) {
71- case 'headline' :
72- // Override lineHeight for Display font
73- return [ Headline , '41px' , 40 , 20 ] ;
7467 case 'title' :
7568 return [ Title , undefined , 26 , 12 ] ;
76- case 'text01s' :
77- return [ Text01S , undefined , 21 , 10 ] ;
7869 case 'text01m' :
7970 return [ Text01M , undefined , 21 , 10 ] ;
80- case 'text02s' :
81- return [ Text02S , undefined , 18 , 9 ] ;
8271 case 'text02m' :
8372 return [ Text02M , undefined , 18 , 9 ] ;
8473 case 'caption13M' :
74+ return [ Caption13Up , undefined , 16 , 8 ] ;
75+ case 'caption13Up' :
8576 return [ Caption13M , undefined , 16 , 8 ] ;
8677 default :
8778 // Override lineHeight for Display font
0 commit comments