Skip to content

Commit

Permalink
Remove PreCheckNavigation from VP hints
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchmidt committed Jan 16, 2025
1 parent bd13144 commit b9c21e0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions packages/dito/app/routes/vorpruefung.hinweise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<typeof loader>();
return (
<div className="flex bg-blue-100 sm:pt-32 parent-bg-blue">
<div className="hidden lg:block flex-none pl-32">
<PreCheckNavigation answers={answers ?? {}} />
</div>
<section>
<Container className="pt-0">
<Heading
Expand Down

0 comments on commit b9c21e0

Please sign in to comment.