From 88329fb886a25051ed466da529c3854bbc66a19d Mon Sep 17 00:00:00 2001 From: jimmys-box <89916651+jimmys-box@users.noreply.github.com> Date: Fri, 8 Apr 2022 10:56:51 +0200 Subject: [PATCH] debug: --- components/form/ConfirmModal.jsx | 274 ++++++++++++++++--------------- 1 file changed, 140 insertions(+), 134 deletions(-) diff --git a/components/form/ConfirmModal.jsx b/components/form/ConfirmModal.jsx index 328d376..3d81fd7 100644 --- a/components/form/ConfirmModal.jsx +++ b/components/form/ConfirmModal.jsx @@ -1,5 +1,6 @@ import { useTranslation } from "next-i18next"; import { useState } from "react"; +import Footer from "@components/layouts/Footer"; import TrashButton from "./TrashButton"; import { faExclamationTriangle, @@ -49,7 +50,8 @@ const ConfirmModal = ({ CreateElection, handleRestrictResultCheck, handleIsTimeL {i}h00 )); -console.log(isTimeLimited); + + return (
- - {t( - "The results page will not be accessible until the end date is reached." - )}{" "} - ({finish.toLocaleDateString()} {t("at")}{" "} - {finish.toLocaleTimeString()}) - -
+ {restrictResult ? ( ++ + {t( + "The results page will not be accessible until the end date is reached." + )}{" "} + ({finish.toLocaleDateString()} {t("at")}{" "} + {finish.toLocaleTimeString()}) + +
+