useSWR upload

This commit is contained in:
Peter Hoppe
2023-02-01 15:28:38 +01:00
parent 153d2156e1
commit 6c15821467
9 changed files with 92 additions and 113 deletions

View File

@ -88,8 +88,8 @@ function Profil()
}
setFormData(formData);
update data with phpapi
mutate
// update data with phpapi
// mutate
}
const qr_refresh = (e: React.MouseEvent<HTMLButtonElement>) =>
@ -99,8 +99,8 @@ function Profil()
setFormData(formData);
showData(data/*, e*/);
update data with phpapi
mutate
// update data with phpapi
// mutate
}
formData.email = data.data.email;
formData.name = data.data.name;