Preparing the repository

This commit is contained in:
charles-gauthereau
2024-12-31 16:42:19 +01:00
parent 1466202fd1
commit e6975b224f
13 changed files with 11390 additions and 6836 deletions
@@ -1,17 +1,15 @@
import {PageParams} from "@/types/next";
import {prisma} from "@/prisma";
import {AgentCard} from "@/components/wrappers/dashboard/agent/AgentCard/AgentCard";
import {CardsWithPagination} from "@/components/wrappers/common/cards-with-pagination";
import {Button} from "@/components/ui/button";
import Link from 'next/link'
import {Page, PageActions, PageContent, PageHeader, PageTitle} from "@/features/layout/page";
import {currentUser} from "@/auth/current-user";
import {db} from "@/db";
import {prisma} from "@/prisma";
export default async function RoutePage(props: PageParams<{}>) {
const agents = await db.agent.findMany()
const agents = await prisma.agent.findMany()
return (
<Page>
@@ -37,7 +35,7 @@ export default async function RoutePage(props: PageParams<{}>) {
/>
:
<Link
href="/dashboard/agents/new"
href={"/dashboard/agents/new"}
className=" flex item-center justify-center border-2 border-dashed transition-colors border-primary p-8 lg:p-12 w-full rounded-md">
Create new Agent
</Link>