mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-30 20:49:49 +02:00
Update animation of progress switcher
This commit is contained in:
@@ -56,7 +56,7 @@ export function FavoriteRoadmaps() {
|
||||
setTimeout(() => {
|
||||
setContainerOpacity(100);
|
||||
}, 50);
|
||||
}, 300);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
async function loadProgress() {
|
||||
@@ -71,13 +71,16 @@ export function FavoriteRoadmaps() {
|
||||
}
|
||||
|
||||
setProgress(progressList);
|
||||
setIsLoading(false);
|
||||
showProgressContainer();
|
||||
|
||||
// render progress on featured items
|
||||
renderProgress(progressList);
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
loadProgress().finally(() => {
|
||||
setIsLoading(false);
|
||||
showProgressContainer();
|
||||
});
|
||||
}, []);
|
||||
|
||||
|
Reference in New Issue
Block a user