mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
c1330d92b2
* mantine v8 migration * various design changes and improvements
22 lines
736 B
TypeScript
22 lines
736 B
TypeScript
import type { ICellRendererParams } from '@ag-grid-community/core';
|
|
|
|
import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell';
|
|
import { ActionIcon } from '/@/shared/components/action-icon/action-icon';
|
|
|
|
export const ActionsCell = ({ api, context }: ICellRendererParams) => {
|
|
return (
|
|
<CellContainer position="center">
|
|
<ActionIcon
|
|
icon="ellipsisHorizontal"
|
|
onClick={(e) => {
|
|
e.stopPropagation();
|
|
e.preventDefault();
|
|
context.onCellContextMenu(undefined, api, e);
|
|
}}
|
|
size="sm"
|
|
variant="subtle"
|
|
/>
|
|
</CellContainer>
|
|
);
|
|
};
|