Fix types

This commit is contained in:
2024-01-07 01:29:58 +01:00
committed by Clément Le Bihan
parent 17a4328af5
commit 3c04e8bb39
20 changed files with 35 additions and 197 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type CompetenciesTableProps = {
const CompetenciesTable = (props: CompetenciesTableProps) => {
const navigation = useNavigation();
return (
<Card padding={5} onPress={() => navigation.navigate('User', {})} shadow={3}>
<Card padding={5} onPress={() => navigation.navigate('User')} shadow={3}>
<HStack space={5} flex={1}>
<VStack space={5}>
{Object.keys(props).map((competencyName, i) => (
+1 -1
View File
@@ -14,7 +14,7 @@ const ProgressBar = ({ xp }: { xp: number }) => {
const nav = useNavigation();
return (
<Card w="100%" onPress={() => nav.navigate('User', {})}>
<Card w="100%" onPress={() => nav.navigate('User')}>
<Stack padding={4} space={2} direction="row" alignItems="center">
<UserAvatar />
<VStack alignItems={'center'} flexGrow={1} space={2}>
+1 -1
View File
@@ -108,7 +108,7 @@ const ScoreModal = (props: ScoreModalProps) => {
onPress={() =>
navigation.canGoBack()
? navigation.goBack()
: navigation.navigate('Home', {})
: navigation.navigate('Home')
}
/>
</Row>