router config changes
This commit is contained in:
@@ -28,16 +28,13 @@ export const Route = createFileRoute('/_authed/tournaments/$tournamentId')({
|
||||
withBackButton: true,
|
||||
settingsLink: context.auth.roles.includes("Admin") ? `/admin/tournaments/${params.tournamentId}` : undefined
|
||||
},
|
||||
refresh: {
|
||||
toRefresh: tournamentQueries.details(params.tournamentId).queryKey,
|
||||
}
|
||||
refresh: tournamentQueries.details(params.tournamentId).queryKey,
|
||||
withPadding: false
|
||||
}),
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
function RouteComponent() {
|
||||
const { data: tournament } = useQuery(tournamentQueries.details(Route.useParams().tournamentId));
|
||||
return <Page noPadding>
|
||||
<Profile tournament={tournament!} />
|
||||
</Page>
|
||||
return <Profile tournament={tournament!} />
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@ export const Route = createFileRoute('/_authed/tournaments/')({
|
||||
withBackButton: true,
|
||||
title: 'Tournaments',
|
||||
},
|
||||
refresh: {
|
||||
toRefresh: tournamentQueries.list().queryKey,
|
||||
}
|
||||
refresh: tournamentQueries.list().queryKey
|
||||
}),
|
||||
component: RouteComponent,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user