Fix: copy to clipboard message (#20898)
* fix: copy to clipboard message * chore: deletion of unused imports
This commit is contained in:
parent
88c54792f4
commit
67c48977db
1 changed files with 1 additions and 2 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import { addSnackbarItem } from '../Snackbar';
|
||||
import {
|
||||
initializeDropdown,
|
||||
getDropdownRepositionListener,
|
||||
|
|
@ -11,7 +10,7 @@ const handleCopyPermalink = (closeDropdown) => {
|
|||
event.preventDefault();
|
||||
const permalink = event.target.href;
|
||||
copyToClipboard(permalink).then(() => {
|
||||
addSnackbarItem({ message: 'Copied to clipboard' });
|
||||
top.addSnackbarItem({ message: 'Copied to clipboard' });
|
||||
});
|
||||
closeDropdown();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue