fix(emoji picker): fix copy button

This commit is contained in:
Corentin Thomasset 2023-08-09 22:48:48 +02:00
parent 1a602365be
commit 5cb9f232cd
No known key found for this signature in database
GPG key ID: DBD997E935996158

View file

@ -7,7 +7,7 @@ export function useCopy({ source, text = 'Copied to the clipboard' }: { source?:
return {
async copy(content?: string, { notificationMessage }: { notificationMessage?: string } = {}) {
await copy();
await copy(content);
message.success(notificationMessage ?? text);
},
};