username, fix build

This commit is contained in:
peintnermax
2024-04-01 10:19:30 +02:00
parent 8f836557c3
commit 07788e91b2
3 changed files with 67 additions and 51 deletions

View File

@@ -5,9 +5,8 @@ import React from "react";
import { Logo } from "#/ui/Logo";
import ThemeWrapper from "./ThemeWrapper";
import { LayoutProviders } from "./LayoutProviders";
import ThemeProvider from "./ThemeProvider";
export default async function DynamicTheme({
export default function DynamicTheme({
branding,
children,
}: {
@@ -23,29 +22,29 @@ export default async function DynamicTheme({
}
return (
<ThemeWrapper branding={partial}>
<ThemeProvider>
<LayoutProviders>
<div className="rounded-lg bg-vc-border-gradient dark:bg-dark-vc-border-gradient p-px shadow-lg shadow-black/5 dark:shadow-black/20 mb-10">
<div className="rounded-lg bg-background-light-400 dark:bg-background-dark-500 px-8 py-12">
<div className="mx-auto flex flex-col items-center space-y-4">
<div className="relative">
{branding && (
<Logo
lightSrc={branding.lightTheme?.logoUrl}
darkSrc={branding.darkTheme?.logoUrl}
height={150}
width={150}
/>
)}
</div>
<div className="w-full">{children}</div>
<div className="flex flex-row justify-between"></div>
{/* <ThemeProvider> */}
<LayoutProviders>
<div className="rounded-lg bg-vc-border-gradient dark:bg-dark-vc-border-gradient p-px shadow-lg shadow-black/5 dark:shadow-black/20 mb-10">
<div className="rounded-lg bg-background-light-400 dark:bg-background-dark-500 px-8 py-12">
<div className="mx-auto flex flex-col items-center space-y-4">
<div className="relative">
{branding && (
<Logo
lightSrc={branding.lightTheme?.logoUrl}
darkSrc={branding.darkTheme?.logoUrl}
height={150}
width={150}
/>
)}
</div>
<div className="w-full">{children}</div>
<div className="flex flex-row justify-between"></div>
</div>
</div>
</LayoutProviders>
</ThemeProvider>
</div>
</LayoutProviders>
{/* </ThemeProvider> */}
</ThemeWrapper>
);
}