feat: add backup recovery, setup wizard and user-view guards
This commit is contained in:
@@ -9,6 +9,8 @@ import type { ReactNode } from "react";
|
||||
import BrandingFavicon from "./ui/BrandingFavicon";
|
||||
import FeatureGate from "./ui/FeatureGate";
|
||||
import ApplicationChrome from "./ui/ApplicationChrome";
|
||||
import SetupGate from "./ui/SetupGate";
|
||||
import AdminViewGate from "./ui/AdminViewGate";
|
||||
|
||||
export const metadata = {
|
||||
title: "Magent",
|
||||
@@ -26,8 +28,12 @@ export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
<body>
|
||||
<BrandingFavicon />
|
||||
<div className="page">
|
||||
<ApplicationChrome />
|
||||
<FeatureGate>{children}</FeatureGate>
|
||||
<SetupGate>
|
||||
<ApplicationChrome />
|
||||
<AdminViewGate>
|
||||
<FeatureGate>{children}</FeatureGate>
|
||||
</AdminViewGate>
|
||||
</SetupGate>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user