From 96a980bc071e847a4aecc2edbf90b191afaf513d Mon Sep 17 00:00:00 2001 From: reiyua Date: Thu, 4 Jan 2024 17:20:38 +1100 Subject: [PATCH] Remove unused code --- src/Countdown.jsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Countdown.jsx b/src/Countdown.jsx index eaabe83..5117073 100644 --- a/src/Countdown.jsx +++ b/src/Countdown.jsx @@ -8,8 +8,6 @@ export const Countdown = () => { const [hours, setHours] = useState(0); const [minutes, setMinutes] = useState(0); const [seconds, setSeconds] = useState(0); - // Set default date to 1 Jan 2023 as placeholder - const [inputDate, setInputDate] = useState("1 Jan 2023"); const [currentDate, setCurrentDate] = useState(inputDate); useEffect(() => { @@ -33,10 +31,7 @@ export const Countdown = () => { setInputDate(event.target.value); }; - // When button is clicked, set current date to input date from user submissionn box - const onClickHandler = () => { - setCurrentDate(inputDate); - }; + // Various CSS classes for styling