mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +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',
|
||||
});
|
||||
|
||||
const handleClick = async () => {
|
||||
const handleClick = async (e: React.MouseEvent<HTMLButtonElement>) => {
|
||||
e.preventDefault();
|
||||
|
||||
const didCopy = await copy(target);
|
||||
|
||||
if (didCopy) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user