feat: add root layout and redirect page
This commit is contained in:
27
app/src/app/layout.tsx
Normal file
27
app/src/app/layout.tsx
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
import type { ReactNode } from 'react'
|
||||||
|
import { WalletProviders } from '@/providers/WalletProviders'
|
||||||
|
import { ToastProvider } from '@/components/ui/Toast'
|
||||||
|
import { Nav } from '@/components/Nav'
|
||||||
|
import '@/styles/globals.css'
|
||||||
|
|
||||||
|
export const metadata = {
|
||||||
|
title: 'Solisting Explorer',
|
||||||
|
description: 'Explorer for the Solisting protocol on Solana',
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||||
|
return (
|
||||||
|
<html lang="en">
|
||||||
|
<body>
|
||||||
|
<WalletProviders>
|
||||||
|
<ToastProvider>
|
||||||
|
<Nav />
|
||||||
|
<main style={{ maxWidth: 1200, margin: '0 auto', padding: '32px 22px 90px' }}>
|
||||||
|
{children}
|
||||||
|
</main>
|
||||||
|
</ToastProvider>
|
||||||
|
</WalletProviders>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
)
|
||||||
|
}
|
||||||
5
app/src/app/page.tsx
Normal file
5
app/src/app/page.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { redirect } from 'next/navigation'
|
||||||
|
|
||||||
|
export default function Home() {
|
||||||
|
redirect('/listings')
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user