diff --git a/apps/web/src/app/innstillinger/components/navigation-menu.tsx b/apps/web/src/app/innstillinger/components/navigation-menu.tsx index d7f17622d3..eb39167a6a 100644 --- a/apps/web/src/app/innstillinger/components/navigation-menu.tsx +++ b/apps/web/src/app/innstillinger/components/navigation-menu.tsx @@ -1,7 +1,7 @@ "use client" import { Title } from "@dotkomonline/ui" -import { IconNotes, IconSpy, IconUser, IconUserCircle } from "@tabler/icons-react" +import { IconNotes, IconUser, IconUserCircle } from "@tabler/icons-react" import { SettingsMenuItem } from "./settings-menu-item" export const settingsNavigationItems = [ @@ -10,20 +10,15 @@ export const settingsNavigationItems = [ icon: IconUser, title: "Min bruker", }, - { - slug: "/innstillinger/profil", - icon: IconUserCircle, - title: "Brukerprofil", - }, { slug: "/innstillinger/medlemskap", icon: IconNotes, title: "Medlemskap", }, { - slug: "/innstillinger/personvern", - icon: IconSpy, - title: "Personvern", + slug: "/innstillinger/profil", + icon: IconUserCircle, + title: "Brukerprofil", }, ] diff --git a/apps/web/src/app/innstillinger/personvern/page.tsx b/apps/web/src/app/innstillinger/personvern/page.tsx deleted file mode 100644 index e4cc5f1076..0000000000 --- a/apps/web/src/app/innstillinger/personvern/page.tsx +++ /dev/null @@ -1,59 +0,0 @@ -import { auth } from "@/auth" -import { Text, Title, Toggle } from "@dotkomonline/ui" -import { redirect } from "next/navigation" -import type { FC, ReactNode } from "react" - -const toggleItems = [ - { - key: 0, - optionsText: "Synlig på offentlige påmeldingslister", - state: false, - }, - { - key: 1, - optionsText: "Tillate at bilder av deg på offentlige arrangementer kan legges ut", - state: false, - }, -] - -const PrivacyOption: FC<{ children?: ReactNode }> = ({ children }) => ( - // const [isChecked, setIsChecked] = useState(false) - -
-
-

{children}

-
- {/* !!!!! BYTTES NÅR TOGGLETING SKAL BRUKES !!!!!*/} - -
-
-
-) - -function _PrivacyModule() { - return ( -
- {toggleItems.map((item) => ( - {item.optionsText} - ))} -
- ) -} - -const PrivacyPage = async () => { - const session = await auth.getServerSession() - if (session === null) { - redirect("/") - } - - return ( -
- - Personvern - - Personvernsinnstillinger kommer snart -
- ) -} - -export default PrivacyPage