2
0

perf(e2e): ️ Migrate to Playwright

This commit is contained in:
Baptiste Arnaud
2022-01-28 09:42:31 +01:00
parent c5aaa323d1
commit 73f277fce7
145 changed files with 3104 additions and 2346 deletions

View File

@ -0,0 +1,29 @@
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 />}
onMouseUp={(e) => e.stopPropagation()}
onMouseDown={(e) => e.stopPropagation()}
colorScheme="gray"
variant="outline"
size="sm"
{...props}
/>
<MenuList>{children}</MenuList>
</Menu>
)
}