Skip to content

Commit

Permalink
feat(ManageTokens): added a copy button for the token hash
Browse files Browse the repository at this point in the history
  • Loading branch information
vitshev committed Jun 20, 2024
1 parent c2e20ab commit 20190ef
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
&_name_description {
white-space: pre-wrap;
}

&_name_hash {
display: flex;
justify-content: space-around;
}
}

&__generate-token-button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,17 @@ const AuthenticationTokensSection: FC<{
width: 110,
className: block('table-cell', {name: 'hash'}),
render: ({value}) => {
return truncate(String(value), {length: 12});
return (
<>
{truncate(String(value), {length: 12})}
<ClipboardButton
title="Copy error"
view="flat-secondary"
text={value}
size="xs"
/>
</>
);
},
},
{
Expand Down

0 comments on commit 20190ef

Please # to comment.