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

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