[rewrite] Added shadcn ui to frontend and slightly tweaked backend
This commit is contained in:
1 parent
4c8817e853
commit
6e9334ba0e
202 files changed
+19385
-15424
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { QueryClient } from '@tanstack/react-query'
|
||||
import { createRootRouteWithContext, Outlet } from '@tanstack/react-router'
|
||||
import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
|
||||
import { TanStackRouterDevtools } from '@tanstack/router-devtools'
|
||||
import { Toaster } from '@/components/ui/toaster'
|
||||
import GeneralError from '@/features/errors/general-error'
|
||||
import NotFoundError from '@/features/errors/not-found-error'
|
||||
|
||||
export const Route = createRootRouteWithContext<{
|
||||
queryClient: QueryClient
|
||||
}>()({
|
||||
component: () => {
|
||||
return (
|
||||
<>
|
||||
<Outlet />
|
||||
<Toaster />
|
||||
{import.meta.env.MODE === 'development' && (
|
||||
<>
|
||||
<ReactQueryDevtools buttonPosition='bottom-left' />
|
||||
<TanStackRouterDevtools position='bottom-right' />
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
},
|
||||
notFoundComponent: NotFoundError,
|
||||
errorComponent: GeneralError,
|
||||
})
|
||||
Reference in new issue
Block a user