Skip to content

Commit

Permalink
Merge pull request #230 from chain4travel/suite
Browse files Browse the repository at this point in the history
feat(wallet): update Terms & Conditions for Camino Wallet
  • Loading branch information
aeddaqqa authored Aug 19, 2024
2 parents 72065fc + c4335a0 commit 3a451c1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layout/RoutesSuite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ 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 @@ -113,6 +114,7 @@ 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: 31 additions & 0 deletions src/views/legal/Legal.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React, { useEffect, useRef } from 'react'
import { mountLegal } from 'wallet/mountLegal'

const LoadLegal = () => {
const ref = useRef(null)
useEffect(() => {
mountLegal(ref.current)
}, [])

return (
<div
style={{
display: 'flex',
width: '100%',
height: '100%',
justifyContent: 'center',
alignItems: 'center',
}}
>
<div ref={ref} />
</div>
)
}

export default function Legal() {
return (
<React.Suspense fallback={<div>Loading...</div>}>
<LoadLegal />
</React.Suspense>
)
}

0 comments on commit 3a451c1

Please sign in to comment.