Skip to content

Commit

Permalink
Repalce link to LEGAL.md with /terms
Browse files Browse the repository at this point in the history
  • Loading branch information
MrOrz committed Oct 25, 2022
1 parent 00be7b5 commit 9c58e6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 1 addition & 4 deletions components/AppLayout/AppFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
PROJECT_HACKFOLDR,
PROJECT_SOURCE_CODE,
PROJECT_MEDIUM,
USER_AGREEMENT_URL,
CONTACT_EMAIL,
LINE_URL,
} from 'constants/urls';
Expand Down Expand Up @@ -113,9 +112,7 @@ function AppFooter() {
<div className={classes.column}>
<h3>{t`About`}</h3>
<CustomLink href="/about">{t`About Cofacts`}</CustomLink>
<CustomLink external href={USER_AGREEMENT_URL}>
{t`User Agreement`}
</CustomLink>
<CustomLink href="/terms">{t`User Agreement`}</CustomLink>
<CustomLink external href={PROJECT_HACKFOLDR}>
{t`Introduction`}
</CustomLink>
Expand Down
11 changes: 5 additions & 6 deletions components/AppLayout/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@ import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import { Dialog, DialogTitle, DialogContent } from '@material-ui/core';
import getConfig from 'next/config';
import {
LICENSE_URL,
USER_AGREEMENT_URL,
EDITOR_FACEBOOK_GROUP,
} from 'constants/urls';
import { LICENSE_URL, EDITOR_FACEBOOK_GROUP } from 'constants/urls';
import Link from 'next/link';
import { AUTHOR, LICENSE } from 'lib/terms';
import Facebook from './images/facebook.svg';
import Twitter from './images/twitter.svg';
Expand Down Expand Up @@ -91,7 +88,9 @@ function LoginModal({ onClose, redirectPath }) {
const classes = useStyles();

const termsLink = (
<a key="termsLink" href={USER_AGREEMENT_URL}>{t`User Agreement`}</a>
<Link href="/terms" key="termsLink">
<a>{t`User Agreement`}</a>
</Link>
);
const licenseLink = (
<a key="licenseLink" href={LICENSE_URL}>
Expand Down
2 changes: 0 additions & 2 deletions constants/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ export const PROJECT_SOURCE_CODE =
export const PROJECT_MEDIUM = 'https://medium.com/cofacts';
export const DEVELOPER_HOMEPAGE = 'https://hackmd.io/s/r1nfwTrgM';
export const LICENSE_URL = 'https://creativecommons.org/licenses/by-sa/4.0/';
export const USER_AGREEMENT_URL =
'https://github.com/cofacts/rumors-site/blob/master/LEGAL.md';

// https://developers.facebook.com/docs/sharing/reference/share-dialog#redirect
export const FACEBOOK_SHARE_URL_PREFIX =
Expand Down

0 comments on commit 9c58e6d

Please sign in to comment.