Skip to content

Commit

Permalink
feat: add props for menu label
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai committed Sep 29, 2023
1 parent 7c84c2c commit 6d77a73
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export interface IConfirmAction<Data extends Record<string, unknown>>
export interface ITableProps<Data extends Record<string, unknown>>
extends MRT_TableOptions<Data> {
actions?: IAction<Data>[];
menuLabel?: string;
rowActionNumber?: number;
}

Expand All @@ -82,6 +83,7 @@ export function Table<Data extends Record<string, unknown>>(
actions = [],
icons,
initialState,
menuLabel = 'Other actions',
rowActionNumber = 0,
...mantineTable
} = props;
Expand Down Expand Up @@ -220,7 +222,7 @@ export function Table<Data extends Record<string, unknown>>(
radius={4}
type="button"
>
<Tooltip label="Affiche les autres actions" {...tooltipProps}>
<Tooltip label={menuLabel} {...tooltipProps}>
<div className={classes.menuButtonWrapper}>
<DotsThreeVertical size={16} />
</div>
Expand Down

0 comments on commit 6d77a73

Please sign in to comment.