@@ -253,6 +253,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label} | label={c.label} | ||||
onChange={makeDateChangeHandler(c.paramName)} | onChange={makeDateChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName] ? dayjs(inputs[c.paramName]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
<Box | <Box | ||||
@@ -267,6 +268,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label2} | label={c.label2} | ||||
onChange={makeDateToChangeHandler(c.paramName)} | onChange={makeDateToChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName.concat("To") as T] ? dayjs(inputs[c.paramName.concat("To") as T]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
</Box> | </Box> | ||||
@@ -287,9 +289,9 @@ function SearchBox<T extends string>({ | |||||
<Button | <Button | ||||
variant="outlined" | variant="outlined" | ||||
startIcon={<Search />} | startIcon={<Search />} | ||||
onClick={handleDownload} | |||||
onClick={handleSearch} | |||||
> | > | ||||
{t("Download Report")} | |||||
{t("Search")} | |||||
</Button> | </Button> | ||||
</CardActions> | </CardActions> | ||||
</CardContent> | </CardContent> | ||||
@@ -253,6 +253,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label} | label={c.label} | ||||
onChange={makeDateChangeHandler(c.paramName)} | onChange={makeDateChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName] ? dayjs(inputs[c.paramName]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
<Box | <Box | ||||
@@ -267,6 +268,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label2} | label={c.label2} | ||||
onChange={makeDateToChangeHandler(c.paramName)} | onChange={makeDateToChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName.concat("To") as T] ? dayjs(inputs[c.paramName.concat("To") as T]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
</Box> | </Box> | ||||
@@ -287,9 +289,9 @@ function SearchBox<T extends string>({ | |||||
<Button | <Button | ||||
variant="outlined" | variant="outlined" | ||||
startIcon={<Search />} | startIcon={<Search />} | ||||
onClick={handleDownload} | |||||
onClick={handleSearch} | |||||
> | > | ||||
{t("Download Report")} | |||||
{t("Search")} | |||||
</Button> | </Button> | ||||
</CardActions> | </CardActions> | ||||
</CardContent> | </CardContent> | ||||
@@ -253,6 +253,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label} | label={c.label} | ||||
onChange={makeDateChangeHandler(c.paramName)} | onChange={makeDateChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName] ? dayjs(inputs[c.paramName]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
<Box | <Box | ||||
@@ -267,6 +268,7 @@ function SearchBox<T extends string>({ | |||||
<DatePicker | <DatePicker | ||||
label={c.label2} | label={c.label2} | ||||
onChange={makeDateToChangeHandler(c.paramName)} | onChange={makeDateToChangeHandler(c.paramName)} | ||||
value={inputs[c.paramName.concat("To") as T] ? dayjs(inputs[c.paramName.concat("To") as T]) : null} | |||||
/> | /> | ||||
</FormControl> | </FormControl> | ||||
</Box> | </Box> | ||||
@@ -287,9 +289,9 @@ function SearchBox<T extends string>({ | |||||
<Button | <Button | ||||
variant="outlined" | variant="outlined" | ||||
startIcon={<Search />} | startIcon={<Search />} | ||||
onClick={handleDownload} | |||||
onClick={handleSearch} | |||||
> | > | ||||
{t("Download Report")} | |||||
{t("Search")} | |||||
</Button> | </Button> | ||||
</CardActions> | </CardActions> | ||||
</CardContent> | </CardContent> | ||||