Front: Prettier

This commit is contained in:
Arthur Jamet
2023-09-17 16:13:34 +02:00
committed by Clément Le Bihan
parent 62bf7ec035
commit cd9d64e501
4 changed files with 21 additions and 23 deletions

View File

@@ -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();

View File

@@ -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',
},
},
})
}
}),
},
},
})}
>

View File

@@ -11,9 +11,9 @@ import API from '../API';
const ProfileView = () => {
const navigation = useNavigation();
const userQuery = useQuery(API.getUserInfo);
if (!userQuery.data) {
return <LoadingView/>
return <LoadingView />;
}
return (

View File

@@ -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',
}}
>
<Link
href="https://chroma-case.github.io/"
isExternal
>
<Link href="https://chroma-case.github.io/" isExternal>
Click here for more info
</Link>
</Box>