Skip to content

Commit 95fb225

Browse files
leecalcoteclaude
authored andcommitted
feat(table): make getCopyDeepLinkAction title configurable for i18n
1 parent edc12e5 commit 95fb225

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/custom/ResponsiveDataTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ export interface Column {
154154
* @param onCopy - Called with the row identifier when the user clicks the
155155
* action. The caller is responsible for constructing and writing the URL.
156156
*/
157-
export const getCopyDeepLinkAction = (onCopy: () => void): TableAction => ({
158-
title: 'Copy link',
157+
export const getCopyDeepLinkAction = (onCopy: () => void, title = 'Copy link'): TableAction => ({
158+
title,
159159
icon: <CopyLinkIcon width={20} height={20} />,
160160
onClick: onCopy,
161161
});

0 commit comments

Comments
 (0)