Form interface and Loading menu
This commit is contained in:
23
src/Gridler/components/RightMenuIcon.tsx
Normal file
23
src/Gridler/components/RightMenuIcon.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { ActionIcon } from '@mantine/core';
|
||||
import { IconMenu2 } from '@tabler/icons-react';
|
||||
|
||||
import { useGridlerStore } from './Store';
|
||||
|
||||
export function RightMenuIcon() {
|
||||
const { loadingData, onContextClick } = useGridlerStore((s) => ({
|
||||
loadingData: s.loadingData,
|
||||
onContextClick: s.onContextClick,
|
||||
}));
|
||||
|
||||
return (
|
||||
<ActionIcon
|
||||
loading={loadingData}
|
||||
mr="xs"
|
||||
mt="2px"
|
||||
onClick={(e) => onContextClick('menu', e)}
|
||||
variant="subtle"
|
||||
>
|
||||
<IconMenu2 />
|
||||
</ActionIcon>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user