From c4ffe2426febf28b5a19ba547d4431d55efb5710 Mon Sep 17 00:00:00 2001 From: GermanVor Date: Fri, 16 Feb 2024 12:11:27 +0100 Subject: [PATCH] chore: defaultRowActions --- .../Table/hoc/withTableActions/withTableActions.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Table/hoc/withTableActions/withTableActions.tsx b/src/components/Table/hoc/withTableActions/withTableActions.tsx index 66280b1de3..646ec1394f 100644 --- a/src/components/Table/hoc/withTableActions/withTableActions.tsx +++ b/src/components/Table/hoc/withTableActions/withTableActions.tsx @@ -93,7 +93,7 @@ const menuItemCn = bPopup('menu-item'); const DEFAULT_PLACEMENT: PopperPlacement = ['bottom-end', 'top-end', 'auto']; -type DefaultRenderRowActionsProps = Pick< +type DefaultRowActionsProps = Pick< WithTableActionsProps, 'getRowActions' | 'rowActionsSize' > & @@ -102,14 +102,14 @@ type DefaultRenderRowActionsProps = Pick< index: number; }; -const DefaultRenderRowActions = ({ +const DefaultRowActions = ({ index, item, getRowActions, getRowDescriptor, rowActionsSize, isRowDisabled, -}: DefaultRenderRowActionsProps) => { +}: DefaultRowActionsProps) => { const [open, setOpen] = React.useState(false); const anchorRef = React.useRef(null); @@ -224,7 +224,7 @@ export function withTableActions( } return ( -