mirror of
https://github.com/FranP-code/Reflecto.git
synced 2025-10-13 00:43:31 +00:00
refactor: simplify dashboard by removing unused private data query and welcome message
This commit is contained in:
@@ -21,17 +21,12 @@ export const Route = createFileRoute("/dashboard")({
|
||||
function RouteComponent() {
|
||||
const { data: session, isPending } = authClient.useSession();
|
||||
|
||||
const privateData = useQuery(trpc.privateData.queryOptions());
|
||||
|
||||
if (isPending) {
|
||||
return <div>Loading...</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h1>Dashboard</h1>
|
||||
<p>Welcome {session?.name ?? session?.email}</p>
|
||||
<p>privateData: {privateData.data?.message}</p>
|
||||
<SpacesGrid />
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user