diff --git a/src/layouts/dashboard.tsx b/src/layouts/dashboard.tsx index be6f6ec..22ad67c 100644 --- a/src/layouts/dashboard.tsx +++ b/src/layouts/dashboard.tsx @@ -1,5 +1,7 @@ import { ReactElement } from 'react' import { NavLink, Outlet } from 'react-router-dom' +import { useQuery } from '@tanstack/react-query' + import { Cog6ToothIcon, HomeIcon, @@ -7,7 +9,14 @@ import { LightBulbIcon } from '@heroicons/react/24/solid' -function Dashboard(): ReactElement { +import { me } from '../api/users' + +export default function Dashboard(): ReactElement { + const { isPending, isError, data } = useQuery({ + queryKey: ['me'], + queryFn: me + }) + return (