Skip to content

Commit 1f15bae

Browse files
authored
Merge pull request #111 from rubyforpeace/l_and_d_update
UI - L and d update
2 parents d1fb65c + fb4d2f9 commit 1f15bae

14 files changed

Lines changed: 79 additions & 76 deletions

assets/justiceLogo.png

34.5 KB
Loading

assets/rfpLogo.png

51.7 KB
Loading

package-lock.json

Lines changed: 31 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
},
1414
"jest": {
1515
"preset": "react-native",
16-
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json"],
16+
"moduleFileExtensions": [
17+
"ts",
18+
"tsx",
19+
"js",
20+
"jsx",
21+
"json"
22+
],
1723
"setupFiles": [
1824
"./jestSetupFile.js"
1925
],
@@ -31,7 +37,7 @@
3137
"@react-navigation/native-stack": "^7.1.14",
3238
"@reduxjs/toolkit": "^2.5.0",
3339
"axios": "^1.8.2",
34-
"expo": "^52.0.38",
40+
"expo": "^52.0.41",
3541
"expo-status-bar": "~2.0.1",
3642
"react": "18.3.1",
3743
"react-native": "^0.76.7",
@@ -54,7 +60,7 @@
5460
"eslint-config-universe": "^12.0.1",
5561
"eslint-plugin-testing-library": "^7.1.1",
5662
"jest": "^29.7.0",
57-
"jest-expo": "~52.0.5",
63+
"jest-expo": "^52.0.6",
5864
"msw": "^2.7.3",
5965
"prettier": "^3.2.5",
6066
"prettier-plugin-tailwindcss": "^0.5.11",

src/components/AuthForm.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,17 @@ const AuthForm: React.FC<LoginFieldProps> = ({
3636
return (
3737
<>
3838
<TextInput
39-
style={tw`flex text-white border-white border border-2 border-rounded rounded-3xl w-[70] h-10`}
39+
style={tw`flex text-[#434343] border-[#434343] border border-2 border-rounded rounded-3xl w-[70] h-10`}
4040
placeholder="Email"
41-
placeholderTextColor="white"
41+
placeholderTextColor="#434343"
4242
autoCapitalize="none"
4343
autoCorrect={false}
4444
onChangeText={setEmail}
4545
/>
4646
<TextInput
47-
style={tw`flex text-white border-white border border-2 border-rounded rounded-3xl w-[70] h-10`}
47+
style={tw`flex text-[#434343] border-[#434343] border border-2 border-rounded rounded-3xl w-[70] h-10`}
4848
placeholder="Password"
49-
placeholderTextColor="white"
49+
placeholderTextColor="#434343"
5050
secureTextEntry
5151
autoCapitalize="none"
5252
autoCorrect={false}
@@ -56,7 +56,7 @@ const AuthForm: React.FC<LoginFieldProps> = ({
5656
{errorMessage && <Text style={tw`pl-4 text-red-500`}>{errorMessage}</Text>}
5757
<Button
5858
buttonStyle={tw`flex bg-[#ea5a4e] rounded-3xl w-40 h-10 flex justify-center items-center
59-
${!email || !password ? 'bg-gray-400' : 'bg-[#ea5a4e]'}`}
59+
${!email || !password ? 'bg-gray-400' : 'bg-[#3a9ca6]'}`}
6060
textStyle={tw`text-xl font-bold text-white`}
6161
title="Sign In"
6262
onPress={handleSignIn}
@@ -75,7 +75,7 @@ const AuthForm: React.FC<LoginFieldProps> = ({
7575
Your session will stay active until you sign out.
7676
</Text>
7777
<Pressable
78-
style={tw`rounded-2xl px-4 py-2 bg-[#345073]`}
78+
style={tw`rounded-2xl px-4 py-2 bg-[#3a9ca6]`}
7979
onPress={() => setModalVisible(!modalVisible)}>
8080
<Text style={tw`text-white font-bold text-center`}>OK</Text>
8181
</Pressable>

src/components/CaseContactDetailCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import tw from 'twrnc';
55
const CaseContactDetailCard = ({ item }) => {
66
return (
77
<View
8-
style={tw`flex justify-between flex-col items-center rounded-xl border-b-4 border-slate-300/70 w-[70] border-x-2 h-[45] pb-8 px-6`}>
8+
style={tw`flex justify-between flex-col items-center rounded-xl border-b-4 border-slate-300/70 w-[70] border-x-2 h-[45] pb-8 px-6`}>
99
<View>
10-
<Text style={tw`flex text-center text-lg font-bold text-[#345073]`}>{item.name}</Text>
10+
<Text style={tw`flex text-center text-lg font-bold text-[#3A9BA4]`}>{item.name}</Text>
1111

1212
<Text style={tw`flex text-center text-md text-[#b6b6b6] font-bold`}>
1313
{item.description}

src/components/CheckBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const CheckBox = (props) => {
1111
<View style={tw`flex-row items-center w-36 mt-1 mx-1`}>
1212
<Pressable onPress={props.onPress}>
1313
<MaterialCommunityIcons
14-
name={iconName} size={24} color="#FFFFFF" />
14+
name={iconName} size={24} color="#434343" />
1515
</Pressable>
16-
<Text style={tw`text-white text-sm font-semibold ml-1`}>{props.title}</Text>
16+
<Text style={tw`text-[#434343] text-sm font-semibold ml-1`}>{props.title}</Text>
1717
</View>
1818
);
1919
};

src/components/FormPages/Page4.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const Page4 = ({
4848
/>
4949
<Text style={tw`text-center`}>
5050
<Button
51-
buttonStyle={tw`flex justify-center items-center bg-[#ea5a4e] rounded-3xl w-[30] h-[10] justify-center`}
51+
buttonStyle={tw`flex justify-center items-center bg-[#3A9BA4] rounded-3xl w-[30] h-[10] justify-center`}
5252
textStyle={tw`text-xl font-bold text-white text-center`}
5353
title="Submit"
5454
onPress={() => submit(miles, hours, minutes, date, allCheckboxes)}

src/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ const RootStack = createNativeStackNavigator();
1818

1919
function CustomTabBar({ navigation }) {
2020
return (
21-
<View style={tw`flex-row pb-10 items-center justify-around h-1/8 w-full bg-[#345073] py-1`}>
21+
<View style={tw`flex-row pb-10 items-center justify-around h-1/8 w-full bg-[#434343] py-1`}>
2222
<Button
23-
buttonStyle={tw`flex justify-center items-center bg-[#ea5a4e] rounded-3xl w-[30] h-[10]`}
23+
buttonStyle={tw`flex justify-center items-center bg-[#3a9ca6] rounded-3xl w-[30] h-[10]`}
2424
textStyle={tw`text-xl font-bold text-white`}
2525
title="My Cases"
2626
onPress={() => navigation.navigate('CaseContactListScreen')}
2727
/>
2828
<Button
29-
buttonStyle={tw`flex justify-center items-center bg-[#ea5a4e] rounded-3xl w-[25] h-[10]`}
29+
buttonStyle={tw`flex justify-center items-center bg-[#3a9ca6] rounded-3xl w-[25] h-[10]`}
3030
textStyle={tw`text-xl font-bold text-white`}
3131
title="Create"
3232
onPress={() => navigation.navigate('CaseContactCreateScreen')}
3333
/>
3434
<Button
35-
buttonStyle={tw`flex justify-center items-center bg-[#ea5a4e] rounded-3xl w-[30] h-[10]`}
35+
buttonStyle={tw`flex justify-center items-center bg-[#3a9ca6] rounded-3xl w-[30] h-[10]`}
3636
textStyle={tw`text-xl font-bold text-white`}
3737
title="Account"
3838
onPress={() => navigation.navigate('AccountScreen')}

src/screens/AccountScreen.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ const AccountScreen = () => {
1919
};
2020

2121
return (
22-
<View style={tw`flex items-center gap-3 flex-1 bg-[#d5d7da]`}>
22+
<View style={tw`flex items-center gap-3 flex-1 bg-[#535353]`}>
2323
<View style={tw`flex-col justify-center h-1/5`}>
24-
<Text style={tw`text-3xl font-bold`} testID="user:display_name">
24+
<Text style={tw`text-3xl text-white font-bold`} testID="user:display_name">
2525
{user?.display_name ?? ''}
2626
</Text>
2727
</View>
2828

2929
<View style={tw`flex justify-around items-center h-3/5`}>
30-
<Text style={tw`flex text-2xl font-bold`} testID="user:email">
30+
<Text style={tw`flex text-2xl text-white font-bold`} testID="user:email">
3131
{user?.email ?? ''}
3232
</Text>
3333
<Button
34-
buttonStyle={tw`flex bg-[#ea5a4e] rounded-3xl w-[40] h-[10] flex justify-center items-center`}
34+
buttonStyle={tw`flex bg-[#3a9ca6] rounded-3xl w-[40] h-[10] flex justify-center items-center`}
3535
textStyle={tw`text-xl font-bold text-white`}
3636
title="Sign out"
3737
titleColor="white"

0 commit comments

Comments
 (0)