Skip to content

Commit

Permalink
Added terms of use to join page as well
Browse files Browse the repository at this point in the history
  • Loading branch information
shahanneda committed Nov 4, 2024
1 parent d01fa6e commit 237965b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/auth/Join.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
ASP_DASHBOARD_PAGE,
HOME_PAGE,
JOIN_SUCCESS_PAGE,
TERMS_OF_USE_URL,
} from "../../constants/Routes";
import AuthContext from "../../contexts/AuthContext";
import {
Expand Down Expand Up @@ -607,11 +608,10 @@ const Join = (): React.ReactElement => {
variant={{ base: "mobile-xs", lg: "desktop-xs" }}
>
{"By selecting Create Account, you agree to FCK's "}
{/* TODO: replace HOME_PAGE with actual terms & conditions route */}
<Link
color="primary.blue"
textDecoration="underline"
href={HOME_PAGE}
href={TERMS_OF_USE_URL}
isExternal
>
Terms & Conditions
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/common/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ import { InstagramIcon } from "../../assets/icons/Instagram";
import { LinkedinIcon } from "../../assets/icons/LinkedIn";
import { TwitterIcon } from "../../assets/icons/TwitterSquare";
import Logo from "../../assets/logo.png";
import { TERMS_OF_USE_URL } from "../../constants/Routes";
import useIsWebView from "../../utils/useIsWebView";


const TermsOfUse = () => (
<Text
as="a"
href="https://docs.google.com/document/d/1x1O9uNSVD5WU_hRBPIaaI0gULEp4yYnsJoR6L8XEBvM/edit?usp=sharing"
href={TERMS_OF_USE_URL}
target="_blank"
color="blue.500"
textDecoration="underline"
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/constants/Routes.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@

export const TERMS_OF_USE_URL =
"https://docs.google.com/document/d/1x1O9uNSVD5WU_hRBPIaaI0gULEp4yYnsJoR6L8XEBvM/edit?usp=sharing";

export const HOME_PAGE = "/";

export const LOGIN_PAGE = "/login";
Expand Down

0 comments on commit 237965b

Please sign in to comment.