Done for now

This commit is contained in:
2024-01-09 13:30:32 +01:00
parent 510545bf82
commit 3fbcfe5797
2 changed files with 12 additions and 10 deletions
+9 -7
View File
@@ -28,14 +28,16 @@ const YourPage = () => {
let api = new usersService();
const res = await api.MyPageIntro(pageValues);
setResponse({
loading: false,
data: res.data,
msg: "Page updated successfully",
});
setTimeout(() => {
setResponse({
loading: false,
data: res.data,
msg: "Page updated successfully",
});
// Clear form after successful update
setPageValues({ intro: "", description: "" });
// Clear form after successful update
setPageValues({ intro: "", description: "" });
}, 2000);
} catch (error) {
setResponse({
loading: false,