Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v1.0.5 #130

Merged
merged 23 commits into from
Apr 2, 2022
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'development' into add-in-progress-computation
  • Loading branch information
benny-n committed Mar 28, 2022
commit 0016b3d10d8db1964659bfbbf6d8b82748c1f81f
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ import { useStore } from "../../../hooks/useStore";
import { observer } from "mobx-react-lite";
import useUpdateUserSettings from "../../../hooks/apiHooks/useUpdateUserSettings";
import { useAuth } from "../../../hooks/useAuth";
import Confetti from "react-confetti";

const DegreeMainStatusComp: React.FC = () => {
const {
dataStore: {
userDetails,
userSettings,
updateComputeInProgressInUserSettings,
isDegreeComplete,
},
} = useStore();

Expand Down Expand Up @@ -56,14 +58,22 @@ const DegreeMainStatusComp: React.FC = () => {
if (userSettings) {
setComputeInProgress(userSettings.compute_in_progress);
}

if (isDegreeComplete()) {
setConfetti(true);
setConfettiRecycle(true);
setTimeout(() => {
setConfettiRecycle(false);
}, 3000);
}
}, [
error,
isDegreeComplete,
isError,
pointsDone,
userDetails,
userDetails?.degree_status?.course_statuses,
userDetails?.degree_status.course_statuses,
userSettings,
userSettings?.compute_in_progress,
isError,
error,
]);

const progress =
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.