From 251efa6dd2ef42d994d96dcd4acc7ead30084e7d Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 25 Apr 2024 11:07:46 +0200 Subject: [PATCH] build fixes --- pages/index.tsx | 2 +- pages/voorgenomen-huwelijk/betalen/succes.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 72d1e9f..581ad04 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,6 +1,7 @@ import Head from "next/head"; import { useTranslation } from "next-i18next"; import { serverSideTranslations } from "next-i18next/serverSideTranslations"; +import { useContext } from "react"; import { ButtonLink, Document, @@ -23,7 +24,6 @@ import { } from "../src/components"; import { PageFooterTemplate } from "../src/components/huwelijksplanner/PageFooterTemplate"; import { PageHeaderTemplate } from "../src/components/huwelijksplanner/PageHeaderTemplate"; -import { useContext, useEffect } from "react"; import { MarriageOptionsContext } from "../src/context/MarriageOptionsContext"; export const getServerSideProps = async ({ locale }: { locale: string }) => ({ diff --git a/pages/voorgenomen-huwelijk/betalen/succes.tsx b/pages/voorgenomen-huwelijk/betalen/succes.tsx index e801209..05f6742 100644 --- a/pages/voorgenomen-huwelijk/betalen/succes.tsx +++ b/pages/voorgenomen-huwelijk/betalen/succes.tsx @@ -1,4 +1,6 @@ import { UtrechtBadgeStatus } from "@utrecht/web-component-library-react"; +import { addWeeks } from "date-fns"; +import _ from "lodash"; import Head from "next/head"; import { useRouter } from "next/router"; import { useTranslation } from "next-i18next"; @@ -36,11 +38,9 @@ import { } from "../../../src/components"; import { PageFooterTemplate } from "../../../src/components/huwelijksplanner/PageFooterTemplate"; import { PageHeaderTemplate } from "../../../src/components/huwelijksplanner/PageHeaderTemplate"; -import { exampleState, HuwelijksplannerState, Reservation } from "../../../src/data/huwelijksplanner-state"; import { MarriageOptionsContext } from "../../../src/context/MarriageOptionsContext"; +import { exampleState, HuwelijksplannerState, Reservation } from "../../../src/data/huwelijksplanner-state"; import { HuwelijkService } from "../../../src/generated"; -import { addWeeks } from "date-fns"; -import _ from "lodash"; export const getServerSideProps = async ({ locale }: { locale: string }) => ({ props: { @@ -95,7 +95,7 @@ export default function HuwelijksplannerStep0() { }; function parseISOString(s: any) { - var b = s.split(/\D+/); + const b = s.split(/\D+/); return new Date(Date.UTC(b[0], --b[1], b[2], b[3], b[4], b[5], b[6])); }