2
0

Add Dashboard

This commit is contained in:
Baptiste Arnaud
2021-12-06 15:48:50 +01:00
parent 5e14a94dea
commit 54a641b819
47 changed files with 2002 additions and 168 deletions

View File

@ -0,0 +1,28 @@
import {
ButtonProps,
IconButton,
Menu,
MenuButton,
MenuList,
} from '@chakra-ui/react'
import { MoreVerticalIcon } from 'assets/icons'
import { ReactNode } from 'react'
type Props = { children: ReactNode } & ButtonProps
export const MoreButton = ({ children, ...props }: Props) => {
return (
<Menu>
<MenuButton
as={IconButton}
icon={<MoreVerticalIcon />}
onClick={(e) => e.stopPropagation()}
colorScheme="blue"
variant="ghost"
size="lg"
{...props}
/>
<MenuList>{children}</MenuList>
</Menu>
)
}