mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 06:55:06 -04:00
fix(emoji picker): fix copy button (#556)
This commit is contained in:
parent
1a602365be
commit
e5d0ba7073
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export function useCopy({ source, text = 'Copied to the clipboard' }: { source?:
|
||||||
|
|
||||||
return {
|
return {
|
||||||
async copy(content?: string, { notificationMessage }: { notificationMessage?: string } = {}) {
|
async copy(content?: string, { notificationMessage }: { notificationMessage?: string } = {}) {
|
||||||
await copy();
|
await copy(content);
|
||||||
message.success(notificationMessage ?? text);
|
message.success(notificationMessage ?? text);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue