1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-10-03 04:11:54 +02:00

Refactor page progress implementation

This commit is contained in:
Kamran Ahmed
2023-05-30 18:52:41 +01:00
parent d2394aca77
commit aa32258aa1
9 changed files with 34 additions and 45 deletions

View File

@@ -1,6 +1,6 @@
import { useEffect, useState } from 'preact/hooks';
import { httpGet, httpPost } from '../../lib/http';
import { pageLoadingMessage } from '../../stores/page';
import { pageProgressMessage } from '../../stores/page';
import UploadProfilePicture from './UploadProfilePicture';
export function UpdateProfileForm() {
@@ -75,7 +75,7 @@ export function UpdateProfileForm() {
// Make a request to the backend to fill in the form with the current values
useEffect(() => {
loadProfile().finally(() => {
pageLoadingMessage.set('');
pageProgressMessage.set('');
});
}, []);