Skip to content

Commit 291b30d

Browse files
committed
feat: fix button color
1 parent 6ab2949 commit 291b30d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/components/Button.tsx

+12-13
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
type TextStyle,
77
type ViewStyle,
88
} from 'react-native';
9-
import { colors } from '../colors/colors';
109
import { globalStyles } from '../styles/globalStyles';
1110
import Text from './Text';
1211

@@ -54,22 +53,22 @@ const Button = (props: Props) => {
5453
paddingVertical: size === 'large' ? 14 : size === 'small' ? 6 : 12,
5554
paddingHorizontal: size === 'large' ? 30 : size === 'small' ? 12 : 20,
5655
backgroundColor: outline
57-
? colors.white
56+
? 'white'
5857
: color
5958
? color
6059
: type === 'primary'
61-
? colors.blue400
62-
: colors.white,
60+
? '#0d6efd'
61+
: 'white',
6362
borderWidth: 1,
6463
borderColor: outline
6564
? color
6665
? color
67-
: colors.blue400
66+
: '#0d6efd'
6867
: type === 'primary'
69-
? colors.blue400
68+
? '#0d6efd'
7069
: color
7170
? color
72-
: colors.gray400,
71+
: '#e0e0e0',
7372
borderStyle: type === 'dashed' ? 'dashed' : 'solid',
7473
borderRadius: 100,
7574
minHeight: size === 'small' ? 38 : 42,
@@ -114,16 +113,16 @@ const Button = (props: Props) => {
114113
outline
115114
? color
116115
? color
117-
: colors.blue400
116+
: '#0d6efd'
118117
: type === 'primary'
119-
? colors.white
118+
? 'white'
120119
: !type || type === 'text' || type === 'link'
121120
? type === 'link'
122-
? colors.blue500
121+
? '#0d6efd'
123122
: color && color !== '#ffffff' && color !== 'white'
124-
? colors.white
125-
: colors.black
126-
: colors.black
123+
? 'white'
124+
: '#212121'
125+
: '#212121'
127126
}
128127
styles={[{}, textStyleProps]}
129128
/>

0 commit comments

Comments
 (0)