feat(ui): complete phase 4 Poyraz UI foundation
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { DashboardShell } from "@/components/layout/dashboard-shell";
|
||||
import { requireFreelancer } from "@/server/auth/session";
|
||||
import { getPublicBranding } from "@/server/branding/runtime";
|
||||
|
||||
export default async function DashboardLayout({
|
||||
children,
|
||||
@@ -7,6 +8,7 @@ export default async function DashboardLayout({
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
const { user, profile } = await requireFreelancer();
|
||||
const branding = getPublicBranding();
|
||||
const displayName = profile.displayName || user.name || user.email.split("@")[0] || "Neta Kullanıcısı";
|
||||
|
||||
const shortName =
|
||||
@@ -20,6 +22,12 @@ export default async function DashboardLayout({
|
||||
|
||||
return (
|
||||
<DashboardShell
|
||||
branding={{
|
||||
applicationName: branding.applicationName,
|
||||
organizationName: branding.organizationName,
|
||||
lightLogoUrl: branding.lightLogoUrl,
|
||||
darkLogoUrl: branding.darkLogoUrl,
|
||||
}}
|
||||
user={{
|
||||
email: user.email,
|
||||
displayName,
|
||||
|
||||
Reference in New Issue
Block a user