Move new items box to popover
This commit is contained in:
parent
51d2da399e
commit
c611253c4a
@ -3,6 +3,13 @@ import {
|
|||||||
Button,
|
Button,
|
||||||
Container,
|
Container,
|
||||||
Flex,
|
Flex,
|
||||||
|
Popover,
|
||||||
|
PopoverArrow,
|
||||||
|
PopoverBody,
|
||||||
|
PopoverCloseButton,
|
||||||
|
PopoverContent,
|
||||||
|
PopoverHeader,
|
||||||
|
PopoverTrigger,
|
||||||
Select,
|
Select,
|
||||||
useBreakpointValue,
|
useBreakpointValue,
|
||||||
useToast,
|
useToast,
|
||||||
@ -149,17 +156,33 @@ export default function () {
|
|||||||
<Select>{entryTypes}</Select>
|
<Select>{entryTypes}</Select>
|
||||||
</Box>
|
</Box>
|
||||||
</Flex>
|
</Flex>
|
||||||
<Button borderRadius="50%" h="16" w="16">
|
<Popover>
|
||||||
<svg
|
<PopoverTrigger>
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
<Button borderRadius="50%" h="16" w="16">
|
||||||
width="16"
|
<svg
|
||||||
height="16"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
fill="currentColor"
|
width="16"
|
||||||
viewBox="0 0 16 16"
|
height="16"
|
||||||
>
|
fill="currentColor"
|
||||||
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" />
|
viewBox="0 0 16 16"
|
||||||
</svg>
|
>
|
||||||
</Button>
|
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" />
|
||||||
|
</svg>
|
||||||
|
</Button>
|
||||||
|
</PopoverTrigger>
|
||||||
|
<PopoverContent>
|
||||||
|
<PopoverArrow />
|
||||||
|
<PopoverCloseButton />
|
||||||
|
<PopoverHeader>Create New</PopoverHeader>
|
||||||
|
<PopoverBody>
|
||||||
|
<VStack>
|
||||||
|
{pageProps.item_types.map((item) => {
|
||||||
|
return <Button w="100%">{item.name}</Button>;
|
||||||
|
})}
|
||||||
|
</VStack>
|
||||||
|
</PopoverBody>
|
||||||
|
</PopoverContent>
|
||||||
|
</Popover>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user