Unified styling for buttons

This commit is contained in:
Keannu Christian Bernasol 2023-07-19 17:47:12 +08:00
parent 8fb8d6b8b2
commit 334978d2fd
7 changed files with 8 additions and 24 deletions

View file

@ -43,6 +43,9 @@ export default function Home() {
useEffect(() => {
requestLocation();
}, [location]);
useEffect(() => {
requestLocation();
}, []);
async function getDistance(location: LocationType) {
let dist = GetDistance(

View file

@ -99,14 +99,10 @@ export default function Login() {
}
});
}}
color={colors.secondary_3}
>
<Text style={styles.text_white_small}>Login</Text>
</Button>
<Button
onPress={() => navigation.navigate("Register")}
color={colors.secondary_3}
>
<Button onPress={() => navigation.navigate("Register")}>
<Text style={styles.text_white_small}>Register</Text>
</Button>
</AnimatedContainer>

View file

@ -158,7 +158,6 @@ export default function Register() {
{
}
}}
color={colors.secondary_3}
>
<Text style={styles.text_white_small}>Register</Text>
</Button>

View file

@ -201,7 +201,6 @@ export default function SubjectsPage() {
</View>
<View style={{ zIndex: -1 }}>
<Button
color={colors.secondary_3}
onPress={() => {
if (subjectsOpen) {
setSelectedSubjects([]);

View file

@ -311,7 +311,6 @@ export default function UserInfoPage() {
<View style={styles.padding} />
<View style={{ zIndex: -1 }}>
<Button
color={colors.secondary_3}
onPress={() => {
if (isEditable) {
setYearLevelOpen(false);