File tree 1 file changed +12
-13
lines changed
1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change 6
6
type TextStyle ,
7
7
type ViewStyle ,
8
8
} from 'react-native' ;
9
- import { colors } from '../colors/colors' ;
10
9
import { globalStyles } from '../styles/globalStyles' ;
11
10
import Text from './Text' ;
12
11
@@ -54,22 +53,22 @@ const Button = (props: Props) => {
54
53
paddingVertical : size === 'large' ? 14 : size === 'small' ? 6 : 12 ,
55
54
paddingHorizontal : size === 'large' ? 30 : size === 'small' ? 12 : 20 ,
56
55
backgroundColor : outline
57
- ? colors . white
56
+ ? ' white'
58
57
: color
59
58
? color
60
59
: type === 'primary'
61
- ? colors . blue400
62
- : colors . white ,
60
+ ? '#0d6efd'
61
+ : ' white' ,
63
62
borderWidth : 1 ,
64
63
borderColor : outline
65
64
? color
66
65
? color
67
- : colors . blue400
66
+ : '#0d6efd'
68
67
: type === 'primary'
69
- ? colors . blue400
68
+ ? '#0d6efd'
70
69
: color
71
70
? color
72
- : colors . gray400 ,
71
+ : '#e0e0e0' ,
73
72
borderStyle : type === 'dashed' ? 'dashed' : 'solid' ,
74
73
borderRadius : 100 ,
75
74
minHeight : size === 'small' ? 38 : 42 ,
@@ -114,16 +113,16 @@ const Button = (props: Props) => {
114
113
outline
115
114
? color
116
115
? color
117
- : colors . blue400
116
+ : '#0d6efd'
118
117
: type === 'primary'
119
- ? colors . white
118
+ ? ' white'
120
119
: ! type || type === 'text' || type === 'link'
121
120
? type === 'link'
122
- ? colors . blue500
121
+ ? '#0d6efd'
123
122
: color && color !== '#ffffff' && color !== 'white'
124
- ? colors . white
125
- : colors . black
126
- : colors . black
123
+ ? ' white'
124
+ : '#212121'
125
+ : '#212121'
127
126
}
128
127
styles = { [ { } , textStyleProps ] }
129
128
/>
You can’t perform that action at this time.
0 commit comments