We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dae2e0 commit e020c85Copy full SHA for e020c85
frontend/src/routes/_layout/projects.index.tsx
@@ -57,23 +57,14 @@ function getStatusLabel(status: string) {
57
}
58
59
function ProjectsTable() {
60
- const navigate = useNavigate({ from: Route.fullPath })
61
const { page } = Route.useSearch()
62
63
const { data, isLoading, isPlaceholderData } = useQuery({
64
...getProjectsQueryOptions({ page }),
65
placeholderData: (prevData) => prevData,
66
})
67
68
- const setPage = (page: number) => {
69
- navigate({
70
- to: "/projects",
71
- search: (prev) => ({ ...prev, page }),
72
- })
73
- }
74
-
75
const projects = data?.data ?? []
76
- const count = data?.count ?? 0
77
78
if (isLoading) {
79
return <Text>Loading projects...</Text>
0 commit comments