diff --git a/prisma/schema.prisma b/prisma/schema.prisma index ed932d718..de378532c 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -74,6 +74,7 @@ model UserSettings { userId String colorScheme String @default("environment") // environment, light, dark language String @default("en") + defaultDashboard String @default("default") searchTemplate String @default("https://google.com/search?q=%s") openSearchInNewTab Boolean @default(true) disablePingPulse Boolean @default(false) diff --git a/src/components/layout/admin/main-admin.layout.tsx b/src/components/layout/admin/main-admin.layout.tsx index 5d812b8b3..619e3ab0c 100644 --- a/src/components/layout/admin/main-admin.layout.tsx +++ b/src/components/layout/admin/main-admin.layout.tsx @@ -44,6 +44,7 @@ import { useScreenLargerThan } from '~/hooks/useScreenLargerThan'; import { usePackageAttributesStore } from '~/tools/client/zustands/usePackageAttributesStore'; import { Logo } from '../Logo'; +import { MainHeader } from '../new-header/Header'; interface MainLayoutProps { children: ReactNode; @@ -56,7 +57,8 @@ export const MainLayout = ({ children }: MainLayoutProps) => { const screenLargerThanMd = useScreenLargerThan('md'); - const [burgerMenuOpen, { toggle: toggleBurgerMenu, close: closeBurgerMenu }] = useDisclosure(false); + const [burgerMenuOpen, { toggle: toggleBurgerMenu, close: closeBurgerMenu }] = + useDisclosure(false); const navigationLinks = ( <> @@ -141,53 +143,7 @@ export const MainLayout = ({ children }: MainLayoutProps) => { } - header={ -
- - - - - This is an experimental feature of Homarr. Please report any issues to the - official Homarr team. - - - - - - {!screenLargerThanMd && ( - - )} - - - - - - - - - - - - - - }>Switch theme - }>View Profile - }>Default Dashboard - - } - color="red" - onClick={() => signOut()} - > - Logout - - - - - - -
- } + header={} footer={