Skip to content

Commit

Permalink
Merge pull request #232 from chain4travel/suite
Browse files Browse the repository at this point in the history
chore: Remove Legal view and update Terms of Use URL
  • Loading branch information
Ysrbolles authored Aug 20, 2024
2 parents 3a451c1 + 5993344 commit 0af6c4c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 38 deletions.
2 changes: 2 additions & 0 deletions src/constants/route-paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ export const CCHAIN = BASE_PATH + '/c-chain'
export const XCHAIN = BASE_PATH + '/x-chain'

export const PCHAIN = BASE_PATH + '/p-chain'

export const TERMS_OF_USE_URL = 'https://camino.network/terms/'

Check warning on line 43 in src/constants/route-paths.ts

View workflow job for this annotation

GitHub Actions / yarn-build

Insert `⏎`
2 changes: 0 additions & 2 deletions src/layout/RoutesSuite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import MountAccessComponent from '../views/access/MountAccessComponent'
import Create from '../views/create/Create'
import ExplorerApp from '../views/explorer/ExplorerApp'
import LandingPage from '../views/landing/LandingPage'
import Legal from '../views/legal/Legal'
import LoginPage from '../views/login/LoginPage'
import Partners from '../views/partners'
import CreatedOffers from '../views/partners/CreatedOffers'
Expand Down Expand Up @@ -114,7 +113,6 @@ export default function RoutesSuite() {
</Route>
<Route path="/login" element={<LoginPage />} />
<Route path="/create" element={<Create />} />
<Route path="/legal" element={<Legal />} />
<Route path="/access" element={<AccessLayout />}>
<Route path="keystore" element={<MountAccessComponent type="Keystore" />} />
<Route path="mnemonic" element={<MountAccessComponent type="Mnemonic" />} />
Expand Down
31 changes: 0 additions & 31 deletions src/views/legal/Legal.tsx

This file was deleted.

11 changes: 6 additions & 5 deletions src/views/login/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { mdiFileKeyOutline, mdiListBoxOutline, mdiShieldKeyOutline } from '@mdi/js'
import { Box, Button, Paper, Typography } from '@mui/material'
import { Link, useNavigate } from 'react-router-dom'
import React, { useEffect, useRef } from 'react'
import { mdiFileKeyOutline, mdiListBoxOutline, mdiShieldKeyOutline } from '@mdi/js'
import { Link, useNavigate } from 'react-router-dom'

import { Grid } from '@mui/material'
import Icon from '@mdi/react'
import { mountAccounts } from 'wallet/mountAccounts'
import { Grid } from '@mui/material'
import { styled } from '@mui/material/styles'
import { mountAccounts } from 'wallet/mountAccounts'
import { TERMS_OF_USE_URL } from '../../constants/route-paths'

const StyledExternalLink = styled('a')(({ theme }) => ({
color: theme.palette.text.primary,
Expand Down Expand Up @@ -161,7 +162,7 @@ export default function LoginPage() {
<Typography variant="caption" color="text.secondary" textAlign="center">
By using this application, you agree to the&nbsp;
<StyledExternalLink
href="/legal"
href={TERMS_OF_USE_URL}
target="_blank"
rel="noopener noreferrer"
style={{ textDecoration: 'none' }}
Expand Down

0 comments on commit 0af6c4c

Please sign in to comment.