Skip to content

Commit

Permalink
global styling
Browse files Browse the repository at this point in the history
  • Loading branch information
philipye314 committed Nov 1, 2023
1 parent 799f05c commit 17aec66
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
16 changes: 10 additions & 6 deletions src/Components/EligibilityCard/EligibilityCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { TouchableOpacity } from 'react-native-gesture-handler';
import styles from './styles';
import { Case, Eligibility } from '../../types/types';
import { useRouter } from 'expo-router';
import Arrow from '../../../assets/arrow.svg';
import Check from '../../../assets/check.svg';
import Fileclaim from '../../../assets/file-claim.svg';
import Optout from '../../../assets/opt-out.svg';

interface EligibilityCardProps {
caseData: Case;
Expand All @@ -28,11 +32,11 @@ export default function EligibilityCard({
}}
>
<View style={styles.topText}>
<Text style={styles.text}>v</Text>
<Check />
<View style={styles.center}>
<Text style={styles.text}>Check Eligibility</Text>
</View>
<Text style={styles.text}>{'->'}</Text>
<Arrow />
</View>

<Text>
Expand All @@ -48,11 +52,11 @@ export default function EligibilityCard({
<View style={styles.inner}>
<TouchableOpacity style={styles.button}>
<View style={styles.topText}>
<Text style={styles.text}>{'->'}</Text>
<Fileclaim />
<View style={styles.center}>
<Text style={styles.text}>File a Claim</Text>
</View>
<Text style={styles.text}>{'->'}</Text>
<Arrow />
</View>

<Text>
Expand All @@ -64,11 +68,11 @@ export default function EligibilityCard({
<View style={styles.inner}>
<TouchableOpacity style={styles.button}>
<View style={styles.topText}>
<Text style={styles.text}>{'->'}</Text>
<Optout />
<View style={styles.center}>
<Text style={styles.text}>Opt Out</Text>
</View>
<Text style={styles.text}>{'->'}</Text>
<Arrow />
</View>

<Text>
Expand Down
7 changes: 4 additions & 3 deletions src/Components/EligibilityCard/styles.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { StyleSheet } from 'react-native';
import { normalize } from 'yargs';
import { colors } from '../../styles/colors';

export default StyleSheet.create({
eligible: {
Expand All @@ -20,10 +21,10 @@ export default StyleSheet.create({
height: '90%',
width: '90%',
border: 'solid',
borderColor: '#767676',
borderColor: colors.darkGrey,
borderWidth: 0.5,
borderRadius: 5,
background: '#FFF',
background: colors.white,
margin: 5,
flexDirection: 'column',
justifyContent: 'space-evenly',
Expand All @@ -37,7 +38,7 @@ export default StyleSheet.create({
flex: 0.9,
},
text: {
color: '#2C2C2C',
color: colors.black,
fontSize: 20,
fontStyle: 'normal',
fontWeight: '700',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useLocalSearchParams, useRouter } from 'expo-router';
import styles from './styles';
import { updateCaseStatus } from '../../../../../supabase/queries/cases';
import { CaseUid, Eligibility } from '../../../../../types/types';
import Arrow from '../../../../../../assets/arrow.svg';

export default function EligibilityForm() {
const router = useRouter();
Expand Down Expand Up @@ -38,7 +39,7 @@ export default function EligibilityForm() {
}}
>
<Text>Yes, I am Eligible</Text>
<Text>{'->'}</Text>
<Arrow />
</TouchableOpacity>
</View>
<View style={styles.buttonWrapperBottom}>
Expand Down
2 changes: 1 addition & 1 deletion src/app/(BottomTabNavigation)/Cases/CaseScreen/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default StyleSheet.create({
button: {
margin: 10,
alignItems: 'center',
backgroundColor: '#339FFF',
backgroundColor: colors.midGrey,
padding: 10,
},
});

0 comments on commit 17aec66

Please sign in to comment.