fix(emoji picker): fix copy button (#556)

This commit is contained in:
Corentin THOMASSET 2023-08-09 22:54:49 +02:00 committed by GitHub
parent 1a602365be
commit e5d0ba7073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}, },
}; };