aboutsummaryrefslogtreecommitdiff
path: root/src/components/common
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-05-21 14:07:19 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-05-21 14:07:19 -0700
commit5b57d5c82a0d8b30a58fd66acd79f083e3019cfc (patch)
tree360deccdf5274a5c8aa7b6c10c3a6c73ac96c39c /src/components/common
parentd28255ac358c5d49dc3b1b1d99c967b4063b6abd (diff)
Add colors through types
Diffstat (limited to 'src/components/common')
-rw-r--r--src/components/common/TaggRadioButton.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/common/TaggRadioButton.tsx b/src/components/common/TaggRadioButton.tsx
index fc4008e5..25d00ec9 100644
--- a/src/components/common/TaggRadioButton.tsx
+++ b/src/components/common/TaggRadioButton.tsx
@@ -1,5 +1,6 @@
import React from 'react';
import {StyleSheet, TouchableOpacity, View} from 'react-native';
+import {RADIO_BUTTON_GREY, TAGG_LIGHT_BLUE_2} from '../../constants/constants';
interface TaggRadioButtonProps {
pressed: boolean;
@@ -10,11 +11,11 @@ const TaggRadioButton: React.FC<TaggRadioButtonProps> = ({
onPress,
}) => {
const activeOuterStyle = {
- borderColor: pressed ? '#6EE7E7' : '#BEBEBE',
+ borderColor: pressed ? TAGG_LIGHT_BLUE_2 : RADIO_BUTTON_GREY,
};
const activeInnerStyle = {
- backgroundColor: pressed ? '#6EE7E7' : 'white',
+ backgroundColor: pressed ? TAGG_LIGHT_BLUE_2 : 'white',
};
return (
<TouchableOpacity