Skip to content

Commit

Permalink
removed function that imported fonts (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
KalebE36 authored Sep 6, 2024
1 parent aa34d69 commit 0286c46
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions client/app/components/auth/AuthButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const SignOutButton: React.FC<SignOutButtonProps> = () => {
disabled={loading}>
<Text style={styles.button_text}>Sign Out</Text>
</TouchableOpacity>

);
};

Expand All @@ -72,14 +73,6 @@ export const LogInButton: React.FC<{ onPress?: () => void }> = ({
export const SignUpButton: React.FC<{ onPress?: () => void }> = ({
onPress,
}) => {
const [fontsLoaded, fontError] = useFonts({
"Gilroy-ExtraBold": require("../../../assets/fonts/Gilroy-ExtraBold.otf"),
"Gilroy-Light": require("../../../assets/fonts/Gilroy-Light.otf"),
});

if (!fontsLoaded && !fontError) {
return null;
}

return (
<TouchableOpacity style={styles.login_button} onPress={onPress}>
Expand Down

0 comments on commit 0286c46

Please sign in to comment.