Remove unused code
This commit is contained in:
parent
9efd627b44
commit
96a980bc07
|
@ -8,8 +8,6 @@ export const Countdown = () => {
|
||||||
const [hours, setHours] = useState(0);
|
const [hours, setHours] = useState(0);
|
||||||
const [minutes, setMinutes] = useState(0);
|
const [minutes, setMinutes] = useState(0);
|
||||||
const [seconds, setSeconds] = 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);
|
const [currentDate, setCurrentDate] = useState(inputDate);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -33,10 +31,7 @@ export const Countdown = () => {
|
||||||
setInputDate(event.target.value);
|
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
|
// Various CSS classes for styling
|
||||||
|
|
Loading…
Reference in New Issue