diff --git a/src/Router.tsx b/src/Router.tsx index e991c22..0c1edb7 100644 --- a/src/Router.tsx +++ b/src/Router.tsx @@ -4,8 +4,7 @@ import NotFound from "./pages/not-found/index.page.tsx"; import Layout from "@/components/layout"; import QRCodeGenerator from "./pages/util/qr/index.page.tsx"; import EventsRouter from "./pages/events/EventsRouter.tsx"; -import PrivacyPolicy from "./pages/privacy-policy.page.tsx"; -import TermsAndConditions from "./pages/terms-and-conditions.page.tsx"; +import LegalPage from "@/pages/LegalPage.tsx"; const router = createBrowserRouter([ { @@ -17,16 +16,8 @@ const router = createBrowserRouter([ element: }, { - path: "privacy-policy", - element: - }, - { - path: "imprint", - element: - }, - { - path: "terms-and-conditions", - element: + path: "legal/:page", + element: }, { path: "events/*", diff --git a/src/components/auth/modals/LoginModal.tsx b/src/components/auth/modals/LoginModal.tsx index 1c972e2..8fef763 100644 --- a/src/components/auth/modals/LoginModal.tsx +++ b/src/components/auth/modals/LoginModal.tsx @@ -36,7 +36,7 @@ export default function LoginModal() { username: "", password: "", authMethod: "ldap" as "ldap" | "guest", - privacy: false + terms: false } }) @@ -94,23 +94,23 @@ export default function LoginModal() { required label={ - Ich akzeptiere die - Datenschutzerklärung - . + AGB der StuVe + gelesen und nehme sie zur Kenntnis } - {...formValues.getInputProps("privacy", {type: "checkbox"})} + {...formValues.getInputProps("terms", {type: "checkbox"})} />