Fix types
This commit is contained in:
@@ -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) => (
|
||||
|
||||
@@ -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}>
|
||||
|
||||
@@ -108,7 +108,7 @@ const ScoreModal = (props: ScoreModalProps) => {
|
||||
onPress={() =>
|
||||
navigation.canGoBack()
|
||||
? navigation.goBack()
|
||||
: navigation.navigate('Home', {})
|
||||
: navigation.navigate('Home')
|
||||
}
|
||||
/>
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user