Remove unused code

This commit is contained in:
Ray 2024-01-04 17:20:38 +11:00
parent 9efd627b44
commit 96a980bc07
1 changed files with 1 additions and 6 deletions

View File

@ -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