Skip to content

Commit

Permalink
update layout file
Browse files Browse the repository at this point in the history
  • Loading branch information
Peixer committed Jan 20, 2024
1 parent 5e42d37 commit e4e5473
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
4 changes: 4 additions & 0 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { TooltipProvider } from '@/components/ui/tooltip'
import { env } from '@/config/environment'
import { cn } from '@/utils/cn'

import { Background } from './components/background'
import { HomeTopBar } from './components/home-top-bar'
import './globals.css'
import ClientProviders from './providers'

Expand Down Expand Up @@ -48,8 +50,10 @@ export default function RootLayout({ children }: PropsWithChildren) {
<html lang="en" className={cn('dark', GeistSans.variable, GeistMono.variable)}>
<body>
<ClientProviders>
<HomeTopBar />
<TooltipProvider>{children}</TooltipProvider>
<ToastConfig />
<Background />
</ClientProviders>

{!!env.isProduction && <Analytics />}
Expand Down
5 changes: 0 additions & 5 deletions frontend/src/app/liquidity/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

import { Background } from '../components/background'
import { HomeTopBar } from '../components/home-top-bar'
import LiquidityTable from '../components/liquidity-table'

export default function HomePage() {
Expand All @@ -18,15 +16,12 @@ export default function HomePage() {

return (
<>
<HomeTopBar />

<div className="container relative flex grow flex-col items-center justify-center px-4 py-10 md:px-8">
<main className="flex flex-col gap-8">
<Title />
<LiquidityTable />
</main>
</div>
<Background />
</>
)
}
5 changes: 0 additions & 5 deletions frontend/src/app/orders/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

import { Background } from '../components/background'
import { HomeTopBar } from '../components/home-top-bar'
import OrderTable from '../components/order-table'

export default function OrdersPage() {
Expand All @@ -18,15 +16,12 @@ export default function OrdersPage() {

return (
<>
<HomeTopBar />

<div className="container relative flex grow flex-col items-center justify-center px-4 py-10 md:px-8">
<main className="flex flex-col gap-8">
<Title />
<OrderTable />
</main>
</div>
<Background />
</>
)
}
5 changes: 0 additions & 5 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import { toast } from 'react-hot-toast'
import { ZKRampContractInteractions } from '@/components/web3/zkramp-contract-interactions'

import { Button } from '../components/ui/button'
import { Background } from './components/background'
import { HeroHexagons } from './components/hero-hexagons'
import { HomeTopBar } from './components/home-top-bar'

export default function HomePage() {
const { error } = useInkathon()
Expand All @@ -35,8 +33,6 @@ export default function HomePage() {

return (
<>
<HomeTopBar />

<div className="container relative flex grow flex-col items-center justify-center px-4 py-10 md:px-8">
<main className="flex flex-col gap-8">
<HeroText />
Expand All @@ -52,7 +48,6 @@ export default function HomePage() {
<ZKRampContractInteractions />
</main>
</div>
<Background />
</>
)
}

0 comments on commit e4e5473

Please sign in to comment.