Tomer Barletz
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
5 deletions
-
frontend/src/routes/_layout/index.tsx
|
|
@ -1,17 +1,14 @@ |
|
|
|
import { Box, Container, Text } from "@chakra-ui/react" |
|
|
|
import { useQueryClient } from "@tanstack/react-query" |
|
|
|
import { createFileRoute } from "@tanstack/react-router" |
|
|
|
|
|
|
|
import type { UserPublic } from "../../client" |
|
|
|
import useAuth from "../../hooks/useAuth" |
|
|
|
|
|
|
|
export const Route = createFileRoute("/_layout/")({ |
|
|
|
component: Dashboard, |
|
|
|
}) |
|
|
|
|
|
|
|
function Dashboard() { |
|
|
|
const queryClient = useQueryClient() |
|
|
|
|
|
|
|
const currentUser = queryClient.getQueryData<UserPublic>(["currentUser"]) |
|
|
|
const { user: currentUser } = useAuth() |
|
|
|
|
|
|
|
return ( |
|
|
|
<> |
|
|
|