Skip to content

Commit

Permalink
chore: defaultRowActions
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanVor committed Feb 16, 2024
1 parent 59eae69 commit c4ffe24
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const menuItemCn = bPopup('menu-item');

const DEFAULT_PLACEMENT: PopperPlacement = ['bottom-end', 'top-end', 'auto'];

type DefaultRenderRowActionsProps<I extends TableDataItem> = Pick<
type DefaultRowActionsProps<I extends TableDataItem> = Pick<
WithTableActionsProps<I>,
'getRowActions' | 'rowActionsSize'
> &
Expand All @@ -102,14 +102,14 @@ type DefaultRenderRowActionsProps<I extends TableDataItem> = Pick<
index: number;
};

const DefaultRenderRowActions = <I extends TableDataItem>({
const DefaultRowActions = <I extends TableDataItem>({
index,
item,
getRowActions,
getRowDescriptor,
rowActionsSize,
isRowDisabled,
}: DefaultRenderRowActionsProps<I>) => {
}: DefaultRowActionsProps<I>) => {
const [open, setOpen] = React.useState(false);
const anchorRef = React.useRef<HTMLButtonElement>(null);

Expand Down Expand Up @@ -224,7 +224,7 @@ export function withTableActions<I extends TableDataItem, E extends {} = {}>(
}

return (
<DefaultRenderRowActions
<DefaultRowActions
index={index}
item={item}
getRowActions={getRowActions}
Expand Down

0 comments on commit c4ffe24

Please sign in to comment.