mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
add auth, drizzle, prisma setup logic with template
This commit is contained in:
19
apps/cli/template/base/packages/client/src/routes/index.tsx
Normal file
19
apps/cli/template/base/packages/client/src/routes/index.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import SignUp from "@/components/sign-up-form";
|
||||
import { trpc } from "@/utils/trpc";
|
||||
import { createFileRoute, Link } from "@tanstack/react-router";
|
||||
|
||||
export const Route = createFileRoute("/")({
|
||||
component: HomeComponent,
|
||||
});
|
||||
|
||||
function HomeComponent() {
|
||||
const healthCheck = trpc.healthCheck.useQuery();
|
||||
return (
|
||||
<div className="p-2">
|
||||
<h3>Welcome Home!</h3>
|
||||
<Link to="/dashboard">Go to Dashboard</Link>
|
||||
<p>healthCheck: {healthCheck.data}</p>
|
||||
<SignUp />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user