forked from git.gladyson/openmonetis
Substitui rotas separadas de inativos/arquivados por tabs inline em Cartões, Contas e Anotações, seguindo o padrão já usado em Categorias. Remove sub-links da sidebar e padroniza nomenclatura para "Arquivados". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
543 B
TypeScript
21 lines
543 B
TypeScript
import { CardsPage } from "@/components/cartoes/cards-page";
|
|
import { getUserId } from "@/lib/auth/server";
|
|
import { fetchAllCardsForUser } from "./data";
|
|
|
|
export default async function Page() {
|
|
const userId = await getUserId();
|
|
const { activeCards, archivedCards, accounts, logoOptions } =
|
|
await fetchAllCardsForUser(userId);
|
|
|
|
return (
|
|
<main className="flex flex-col items-start gap-6">
|
|
<CardsPage
|
|
cards={activeCards}
|
|
archivedCards={archivedCards}
|
|
accounts={accounts}
|
|
logoOptions={logoOptions}
|
|
/>
|
|
</main>
|
|
);
|
|
}
|