mirror of
https://github.com/Since-3/since3-portal.git
synced 2026-10-12 21:41:16 +00:00
added dashboard
This commit is contained in:
parent
29ea53a03d
commit
64b2c85f81
14 changed files with 1496 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { notFound } from "next/navigation";
|
||||
import { createAdminClient } from "@/lib/supabase/admin";
|
||||
import { Params } from "@/modules/shared/types/user";
|
||||
import InfoPanel from "@/modules/shared/ui/views/info-panel";
|
||||
|
||||
|
||||
const ClientDetailPage = async ({ params }: { params: Params }) => {
|
||||
|
|
@ -15,12 +16,7 @@ const ClientDetailPage = async ({ params }: { params: Params }) => {
|
|||
|
||||
if (!client) notFound();
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
<h1 className="text-3xl font-semibold">{client.name}</h1>
|
||||
<p className="text-muted-foreground">{client.email}</p>
|
||||
</div>
|
||||
)
|
||||
return <InfoPanel profileId={client.id} isAdmin />
|
||||
}
|
||||
|
||||
export default ClientDetailPage
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
import { verifySession } from "@/lib/supabase/dal"
|
||||
import InfoPanel from "@/modules/shared/ui/views/info-panel"
|
||||
|
||||
const ClientDashboard = () => {
|
||||
return (
|
||||
<div>page</div>
|
||||
)
|
||||
const ClientDashboard = async () => {
|
||||
const session = await verifySession()
|
||||
return <InfoPanel profileId={session.userId} isAdmin={false} />
|
||||
}
|
||||
|
||||
export default ClientDashboard
|
||||
export default ClientDashboard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue