diff --git a/front/App.tsx b/front/App.tsx index d4a7529..415265b 100644 --- a/front/App.tsx +++ b/front/App.tsx @@ -18,9 +18,9 @@ export default function App() { SplashScreen.preventAutoHideAsync(); const [fontsLoaded] = useFonts({ - 'Lexend': require('./assets/fonts/lexend.ttf'), + Lexend: require('./assets/fonts/lexend.ttf'), }); - + useEffect(() => { if (fontsLoaded) { SplashScreen.hideAsync(); diff --git a/front/Theme.tsx b/front/Theme.tsx index 00fae6d..27cf7fe 100644 --- a/front/Theme.tsx +++ b/front/Theme.tsx @@ -13,9 +13,9 @@ const ThemeProvider = ({ children }: { children: JSX.Element }) => { initialColorMode: colorScheme, }, fonts: { - heading: "Lexend", - body: "Lexend", - mono: "Lexend", + heading: 'Lexend', + body: 'Lexend', + mono: 'Lexend', }, colors: { primary: { @@ -101,30 +101,30 @@ const ThemeProvider = ({ children }: { children: JSX.Element }) => { 700: '#8e2c31', 800: '#6b2124', 900: '#531a1c', - } + }, }, components: { Button: { baseStyle: () => ({ - borderRadius: 'md' + borderRadius: 'md', }), }, Link: { defaultProps: { - isUnderlined: false + isUnderlined: false, }, baseStyle: () => ({ _text: { - color: "secondary.300" + color: 'secondary.300', }, _hover: { isUnderlined: true, _text: { - color: "secondary.400" - } + color: 'secondary.400', + }, }, - }) - } + }), + }, }, })} > diff --git a/front/views/ProfileView.tsx b/front/views/ProfileView.tsx index 8f88588..31441a4 100644 --- a/front/views/ProfileView.tsx +++ b/front/views/ProfileView.tsx @@ -11,9 +11,9 @@ import API from '../API'; const ProfileView = () => { const navigation = useNavigation(); const userQuery = useQuery(API.getUserInfo); - + if (!userQuery.data) { - return + return ; } return ( diff --git a/front/views/StartPageView.tsx b/front/views/StartPageView.tsx index 4c3f23e..1ff6ce8 100644 --- a/front/views/StartPageView.tsx +++ b/front/views/StartPageView.tsx @@ -38,10 +38,11 @@ const StartPageView = () => { const dispatch = useDispatch(); const colorScheme = useColorScheme(); const toast = useToast(); - const [icon] = useAssets(colorScheme == 'light' - ? require('../assets/icon_light.png') - : require('../assets/icon_dark.png') - ) + const [icon] = useAssets( + colorScheme == 'light' + ? require('../assets/icon_light.png') + : require('../assets/icon_dark.png') + ); const [loginBanner] = useAssets(require('../assets/auth/login_banner.png')); const [guestBanner] = useAssets(require('../assets/auth/guest_banner.png')); const [registerBanner] = useAssets(require('../assets/auth/register_banner.png')); @@ -172,10 +173,7 @@ const StartPageView = () => { alignItems: 'center', }} > - + Click here for more info