This repository was archived by the owner on Feb 23, 2021. It is now read-only.
File tree 4 files changed +24
-28
lines changed
4 files changed +24
-28
lines changed Original file line number Diff line number Diff line change @@ -84,24 +84,3 @@ SmallBalanceLabel.propTypes = {
84
84
unit : PropTypes . string ,
85
85
style : TextPropTypes . style ,
86
86
} ;
87
-
88
- //
89
- // Small Label
90
- //
91
-
92
- const smallStyles = StyleSheet . create ( {
93
- label : {
94
- fontFamily : 'OpenSans SemiBold' ,
95
- fontSize : font . sizeS ,
96
- lineHeight : font . lineHeightS ,
97
- } ,
98
- } ) ;
99
-
100
- export const SmallLabel = ( { children, style } ) => (
101
- < Text style = { [ smallStyles . label , style ] } > { children } </ Text >
102
- ) ;
103
-
104
- SmallLabel . propTypes = {
105
- children : PropTypes . string . isRequired ,
106
- style : TextPropTypes . style ,
107
- } ;
Original file line number Diff line number Diff line change @@ -67,7 +67,28 @@ export const H1Text = ({ children = '', style }) => (
67
67
) ;
68
68
69
69
H1Text . propTypes = {
70
- children : PropTypes . string ,
70
+ children : PropTypes . string . isRequired ,
71
+ style : TextPropTypes . style ,
72
+ } ;
73
+
74
+ //
75
+ // H4 Text
76
+ //
77
+
78
+ const h4Styles = StyleSheet . create ( {
79
+ text : {
80
+ fontFamily : 'OpenSans SemiBold' ,
81
+ fontSize : font . sizeS ,
82
+ lineHeight : font . lineHeightS ,
83
+ } ,
84
+ } ) ;
85
+
86
+ export const H4Text = ( { children, style } ) => (
87
+ < Text style = { [ h4Styles . text , style ] } > { children } </ Text >
88
+ ) ;
89
+
90
+ H4Text . propTypes = {
91
+ children : PropTypes . string . isRequired ,
71
92
style : TextPropTypes . style ,
72
93
} ;
73
94
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ import MainContent from '../component/main-content';
7
7
import Icon from '../component/icon' ;
8
8
import { Header , Title } from '../component/header' ;
9
9
import { colors } from '../component/style' ;
10
+ import { H4Text } from '../component/text' ;
10
11
import {
11
12
BalanceLabel ,
12
13
BalanceLabelNumeral ,
13
14
BalanceLabelUnit ,
14
15
SmallBalanceLabel ,
15
- SmallLabel ,
16
16
} from '../component/label' ;
17
17
import {
18
18
Button ,
@@ -97,7 +97,7 @@ const BalanceDisplay = ({
97
97
< BalanceLabelNumeral > { channelBalanceLabel } </ BalanceLabelNumeral >
98
98
< BalanceLabelUnit > { unitLabel } </ BalanceLabelUnit >
99
99
</ BalanceLabel >
100
- < SmallLabel style = { balanceStyles . smallLabel } > Pending Deposit</ SmallLabel >
100
+ < H4Text style = { balanceStyles . smallLabel } > Pending Deposit</ H4Text >
101
101
< SmallBalanceLabel unit = { unitLabel } > { balanceLabel } </ SmallBalanceLabel >
102
102
</ Button >
103
103
</ View >
Original file line number Diff line number Diff line change 5
5
BalanceLabelNumeral ,
6
6
BalanceLabelUnit ,
7
7
SmallBalanceLabel ,
8
- SmallLabel ,
9
8
} from '../../src/component/label' ;
10
9
import { colors } from '../../src/component/style' ;
11
10
@@ -31,7 +30,4 @@ storiesOf('Labels', module)
31
30
< SmallBalanceLabel unit = "SAT" style = { { color : colors . blackText } } >
32
31
9,123,456,788
33
32
</ SmallBalanceLabel >
34
- ) )
35
- . add ( 'Small Label' , ( ) => (
36
- < SmallLabel style = { { color : colors . blackText } } > Small Label</ SmallLabel >
37
33
) ) ;
You can’t perform that action at this time.
0 commit comments