Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(wallet): update Terms & Conditions for Camino Wallet #229

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
)
}
Loading