Skip to content

Commit

Permalink
Merge pull request #388 from balancer/beets/update-links
Browse files Browse the repository at this point in the history
[BEETS] update links
  • Loading branch information
groninge01 authored Dec 24, 2024
2 parents 4515372 + 9484691 commit 4d194a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
15 changes: 15 additions & 0 deletions apps/beets-frontend-v3/app/(marketing)/risks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@ import Link from 'next/link'
import { Container, Divider, Box } from '@chakra-ui/react'
import { Prose } from '@nikolovlazar/chakra-ui-prose'
import FadeInOnView from '@repo/lib/shared/components/containers/FadeInOnView'
import { useEffect } from 'react'

export default function Privacy() {
useEffect(() => {
const handleHashChange = () => {
const { hash } = window.location
if (hash) {
const id = hash.substring(1)
const element = document.getElementById(id)
element?.scrollIntoView({ behavior: 'smooth' })
}
}

// Run on initial load
handleHashChange()
}, [])

return (
<Container p="0">
<Prose>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function useFooterData() {
},
]

const legalLinks = [{ label: 'Terms of use', href: '/terms-of-service' }]
const legalLinks = [{ label: 'Terms of service', href: '/terms-of-service' }]

return { linkSections, legalLinks }
}
4 changes: 0 additions & 4 deletions packages/lib/modules/web3/AcceptPoliciesModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ export function AcceptPoliciesModal() {
By connecting my wallet, I agree to Beets&apos;{' '}
<Link as={NextLink} href="/terms-of-service">
Terms of Service
</Link>{' '}
and{' '}
<Link as={NextLink} href="/risks">
Risks
</Link>
.
</Box>
Expand Down

0 comments on commit 4d194a1

Please sign in to comment.