From b9c21e0079705f58913be851dc64a7298350bb27 Mon Sep 17 00:00:00 2001 From: Hendrik Schmidt Date: Thu, 16 Jan 2025 20:35:53 +0100 Subject: [PATCH] Remove PreCheckNavigation from VP hints --- packages/dito/app/routes/vorpruefung.hinweise.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/dito/app/routes/vorpruefung.hinweise.tsx b/packages/dito/app/routes/vorpruefung.hinweise.tsx index 9fa5bdaa..bb471793 100644 --- a/packages/dito/app/routes/vorpruefung.hinweise.tsx +++ b/packages/dito/app/routes/vorpruefung.hinweise.tsx @@ -3,13 +3,10 @@ import Container from "@digitalcheck/shared/components/Container"; import Heading from "@digitalcheck/shared/components/Heading"; import InlineNotice from "@digitalcheck/shared/components/InlineNotice"; import RichText from "@digitalcheck/shared/components/RichText"; -import { json, type LoaderFunctionArgs } from "@remix-run/node"; -import { type MetaFunction, useLoaderData } from "@remix-run/react"; +import { type MetaFunction } from "@remix-run/react"; import { preCheck } from "resources/content"; import { ROUTE_GENERAL_INFO, ROUTE_PRECHECK } from "resources/staticRoutes"; -import { getAnswersFromCookie } from "utils/cookies.server"; import prependMetaTitle from "utils/metaTitle"; -import PreCheckNavigation from "./vorpruefung.$questionId/PreCheckNavigation"; const { questions, generalInfo } = preCheck; const { headline, text, nextButton, hint } = generalInfo; @@ -18,18 +15,9 @@ export const meta: MetaFunction = ({ matches }) => { return prependMetaTitle(ROUTE_GENERAL_INFO.title, matches); }; -export async function loader({ request }: LoaderFunctionArgs) { - const { answers } = await getAnswersFromCookie(request); - return json({ answers }); -} - export default function GeneralInfo() { - const { answers } = useLoaderData(); return (
-
- -