IIiinit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import ExpenseForm from "@/app/_components/expense/expense-form";
|
||||
import Header from "@/components/header";
|
||||
import Section from "@/components/section";
|
||||
import { auth } from "@/server/auth";
|
||||
import { api, HydrateClient } from "@/trpc/server";
|
||||
import React from "react";
|
||||
|
||||
export default async function Page() {
|
||||
const session = await auth();
|
||||
if (session?.user) void api.friend.getAll.prefetch();
|
||||
return (
|
||||
<HydrateClient>
|
||||
<Header text="Add Expense"></Header>
|
||||
<Section>
|
||||
<ExpenseForm />
|
||||
</Section>
|
||||
</HydrateClient>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user