Front: Prettier
This commit is contained in:
committed by
Clément Le Bihan
parent
62bf7ec035
commit
cd9d64e501
@@ -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();
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
}),
|
||||
},
|
||||
},
|
||||
})}
|
||||
>
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user