-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update pricing for Fall 2024 * Use academic calendar instead of term system * Use correct term * Don't show student-paid pricing for non-semester terms * Use fixed pricing for student-pays * Only animate prices when they change * Fix lint
- Loading branch information
1 parent
a117894
commit ae0fa0f
Showing
4 changed files
with
100 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { useEffect, useRef } from "react"; | ||
|
||
export function useUpdateEffect(effect: () => void, deps: any[]) { | ||
const isMounted = useRef(false); | ||
|
||
useEffect(() => { | ||
if (!isMounted.current) { | ||
isMounted.current = true; | ||
} else { | ||
return effect(); | ||
} | ||
// eslint-disable-next-line react-hooks/exhaustive-deps | ||
}, deps); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters