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

This commit is contained in:
Corentin THOMASSET authored and GitHub committed 2023-08-09 20:54:49 +00:00
1 parent 1a602365be
commit e5d0ba7073
1 file changed
+1 -1
+1 -1
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);
},
};