mirror of
https://github.com/strapi/strapi.git
synced 2025-11-13 16:52:18 +00:00
fix: warning user creation
This commit is contained in:
parent
860b3bae00
commit
b0c657a2c9
@ -21,7 +21,9 @@ const MagicLinkWrapper = ({ children, target }: MagicLinkWrapperProps) => {
|
|||||||
defaultMessage: 'Copy to clipboard',
|
defaultMessage: 'Copy to clipboard',
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleClick = async () => {
|
const handleClick = async (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
const didCopy = await copy(target);
|
const didCopy = await copy(target);
|
||||||
|
|
||||||
if (didCopy) {
|
if (didCopy) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user