diff --git a/src/Content.tsx b/src/Content.tsx
index 865bffa..ee00d9d 100644
--- a/src/Content.tsx
+++ b/src/Content.tsx
@@ -2,36 +2,22 @@ import { Route, Routes } from 'react-router-dom'
import { About } from '@/pages/About'
-import { useEffect, useState } from 'react'
-import { collectiveClient } from './clients'
-import { toast } from 'sonner'
-
-const pages = (lcStatus: boolean) => [
+const pages = [
{
path: '',
- element: ,
+ element: ,
+ },
+ {
+ path: '/about',
+ element: ,
},
]
export const Content = () => {
- const [lightClientLoaded, setLightClientLoaded] = useState(false)
-
- useEffect(() => {
- collectiveClient.finalizedBlock$.subscribe((finalizedBlock) => {
- if (finalizedBlock.number && !lightClientLoaded) {
- setLightClientLoaded(true)
- }
- })
- }, [lightClientLoaded])
-
- useEffect(() => {
- lightClientLoaded && toast.success('Light client: Synced')
- }, [lightClientLoaded])
-
return (
<>
- {pages(lightClientLoaded).map(({ path, element }, i) => {
+ {pages.map(({ path, element }, i) => {
return
})}
diff --git a/src/pages/About/index.tsx b/src/pages/About/index.tsx
index ec809be..471e2aa 100644
--- a/src/pages/About/index.tsx
+++ b/src/pages/About/index.tsx
@@ -1,15 +1,10 @@
import { Button } from '@/components/ui/button'
-type Props = {
- lcStatus: boolean
-}
-
const openInNewTab = (url: string | URL | undefined) => {
window.open(url, '_blank', 'noopener,noreferrer')
}
-export const About = ({ lcStatus }: Props) => {
- console.log('Light client status:', lcStatus)
+export const About = () => {
return (