mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
quickfix add missing module
menu action buttons is a planned module. not yet implemented
This commit is contained in:
@@ -0,0 +1,33 @@
|
|||||||
|
import { Menu, MenuButton, MenuItem, MenuList } from '@chakra-ui/menu';
|
||||||
|
import { IconButton } from '@chakra-ui/button';
|
||||||
|
import {
|
||||||
|
FiZap,
|
||||||
|
FiTrash2,
|
||||||
|
} from 'react-icons/fi';
|
||||||
|
|
||||||
|
export default function MenuActionButtons(props) {
|
||||||
|
const menuStyle = {
|
||||||
|
color: '#000000',
|
||||||
|
backgroundColor: 'rgba(255,255,255,1)',
|
||||||
|
};
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Menu>
|
||||||
|
<MenuButton
|
||||||
|
as={IconButton}
|
||||||
|
aria-label='Options'
|
||||||
|
size={props.size || 'xs'}
|
||||||
|
icon={<FiZap />}
|
||||||
|
_expanded={{ bg: 'pink.300', color: 'white' }}
|
||||||
|
_focus={{ boxShadow: 'none' }}
|
||||||
|
backgroundColor={'orange.200'}
|
||||||
|
color={'orange.500'}
|
||||||
|
/>
|
||||||
|
<MenuList style={menuStyle}>
|
||||||
|
<MenuItem icon={<FiTrash2 />} onClick={props.deleteAllHandler}>
|
||||||
|
Delete All
|
||||||
|
</MenuItem>
|
||||||
|
</MenuList>
|
||||||
|
</Menu>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user