fix(emoji picker): fix copy button (#556)
This commit is contained in:
1 parent
1a602365be
commit
e5d0ba7073
1 file changed
+1
-1
@@ -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);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user