Update queue on type change
This commit is contained in:
parent
d7f52bf74f
commit
8224755380
@ -249,7 +249,21 @@ export default function () {
|
|||||||
{entries}
|
{entries}
|
||||||
</VStack>
|
</VStack>
|
||||||
<Box display={isDesktop ? undefined : "none"} ml="16px" w="248px">
|
<Box display={isDesktop ? undefined : "none"} ml="16px" w="248px">
|
||||||
<Select>{entryTypes}</Select>
|
<Select
|
||||||
|
onChange={async (v) => {
|
||||||
|
setEntries([]);
|
||||||
|
setBefore(Date.now());
|
||||||
|
|
||||||
|
const { target } = v;
|
||||||
|
|
||||||
|
await updateQueue(
|
||||||
|
target.options[target.selectedIndex].value,
|
||||||
|
Date.now(),
|
||||||
|
);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{entryTypes}
|
||||||
|
</Select>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Popover placement="top-end">
|
<Popover placement="top-end">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user