forked from git.gladyson/openmonetis
Adicionado aba de estabelecimentos e feita ajuste de interface. Detalhes adicionados no CHANGELOG.md
This commit is contained in:
committed by
Felipe Coutinho
parent
ffde55f589
commit
9b78f839bf
14
app/(dashboard)/estabelecimentos/page.tsx
Normal file
14
app/(dashboard)/estabelecimentos/page.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { EstabelecimentosPage } from "@/components/estabelecimentos/estabelecimentos-page";
|
||||
import { getUserId } from "@/lib/auth/server";
|
||||
import { fetchEstabelecimentosForUser } from "./data";
|
||||
|
||||
export default async function Page() {
|
||||
const userId = await getUserId();
|
||||
const rows = await fetchEstabelecimentosForUser(userId);
|
||||
|
||||
return (
|
||||
<main className="flex flex-col items-start gap-6">
|
||||
<EstabelecimentosPage rows={rows} />
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user