feat(portal): add client settings routes and translations
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { getUserPreferences } from "@/server/settings/preferences";
|
||||
import { requirePortalBackend } from "@/server/web/portal";
|
||||
import { PortalAppearanceForm } from "./portal-appearance-form";
|
||||
|
||||
export default async function PortalAppearanceSettingsPage() {
|
||||
const { actor } = await requirePortalBackend();
|
||||
const preferences = getUserPreferences(actor);
|
||||
|
||||
return <PortalAppearanceForm initialColorMode={preferences.colorMode} />;
|
||||
}
|
||||
Reference in New Issue
Block a user