Skip to content

Commit 237965b

Browse files
committed
Added terms of use to join page as well
1 parent d01fa6e commit 237965b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

frontend/src/components/auth/Join.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
ASP_DASHBOARD_PAGE,
2626
HOME_PAGE,
2727
JOIN_SUCCESS_PAGE,
28+
TERMS_OF_USE_URL,
2829
} from "../../constants/Routes";
2930
import AuthContext from "../../contexts/AuthContext";
3031
import {
@@ -607,11 +608,10 @@ const Join = (): React.ReactElement => {
607608
variant={{ base: "mobile-xs", lg: "desktop-xs" }}
608609
>
609610
{"By selecting Create Account, you agree to FCK's "}
610-
{/* TODO: replace HOME_PAGE with actual terms & conditions route */}
611611
<Link
612612
color="primary.blue"
613613
textDecoration="underline"
614-
href={HOME_PAGE}
614+
href={TERMS_OF_USE_URL}
615615
isExternal
616616
>
617617
Terms & Conditions

frontend/src/components/common/Footer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ import { InstagramIcon } from "../../assets/icons/Instagram";
1414
import { LinkedinIcon } from "../../assets/icons/LinkedIn";
1515
import { TwitterIcon } from "../../assets/icons/TwitterSquare";
1616
import Logo from "../../assets/logo.png";
17+
import { TERMS_OF_USE_URL } from "../../constants/Routes";
1718
import useIsWebView from "../../utils/useIsWebView";
1819

20+
1921
const TermsOfUse = () => (
2022
<Text
2123
as="a"
22-
href="https://docs.google.com/document/d/1x1O9uNSVD5WU_hRBPIaaI0gULEp4yYnsJoR6L8XEBvM/edit?usp=sharing"
24+
href={TERMS_OF_USE_URL}
2325
target="_blank"
2426
color="blue.500"
2527
textDecoration="underline"

frontend/src/constants/Routes.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
export const TERMS_OF_USE_URL =
3+
"https://docs.google.com/document/d/1x1O9uNSVD5WU_hRBPIaaI0gULEp4yYnsJoR6L8XEBvM/edit?usp=sharing";
4+
15
export const HOME_PAGE = "/";
26

37
export const LOGIN_PAGE = "/login";

0 commit comments

Comments
 (0)