fixed to locate date
This commit is contained in:
@@ -9,7 +9,8 @@ interface Props {
|
||||
|
||||
function SearchDateBetween({ onSearch }: Props) {
|
||||
const [startDate, setStartDate] = useState("");
|
||||
const [endDate, setEndDate] = useState("");
|
||||
const todayISO = new Date().toLocaleDateString("en-CA");
|
||||
const [endDate, setEndDate] = useState(todayISO);
|
||||
|
||||
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
|
||||
e.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user