Skip to content

Commit

Permalink
Update animation of progress switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
kamranahmedse committed Jun 14, 2023
1 parent 36b2a8f commit a48d39a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/HeroSection/FavoriteRoadmaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export function FavoriteRoadmaps() {
setTimeout(() => {
setContainerOpacity(100);
}, 50);
}, 300);
}, 0);
}

async function loadProgress() {
Expand All @@ -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();
});
}, []);

Expand Down

0 comments on commit a48d39a

Please sign in to comment.