mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-18 08:26:35 +00:00
clean layout
This commit is contained in:
@@ -2,13 +2,12 @@ import Head from 'next/head'
|
||||
import { Router, useRouter } from 'next/router'
|
||||
import { MDXProvider } from '@mdx-js/react'
|
||||
|
||||
import { LayoutAPI } from '@/components/LayoutAPI'
|
||||
import * as mdxComponents from '@/components/mdx'
|
||||
import { useMobileNavigationStore } from '@/components/MobileNavigation'
|
||||
|
||||
import '@/styles/tailwind.css'
|
||||
import 'focus-visible'
|
||||
import {LayoutDocs} from "@/components/LayoutDocs";
|
||||
import {Layout} from "@/components/Layout";
|
||||
import {slugifyWithCounter} from "@sindresorhus/slugify";
|
||||
|
||||
function onRouteChange() {
|
||||
@@ -33,9 +32,9 @@ export default function App({ Component, pageProps }) {
|
||||
<meta name="description" content={pageProps.description} />
|
||||
</Head>
|
||||
<MDXProvider components={mdxComponents}>
|
||||
<LayoutDocs title={pageProps.title.toString()} tableOfContents={tableOfContents} {...pageProps}>
|
||||
<Layout title={pageProps.title.toString()} tableOfContents={tableOfContents} {...pageProps}>
|
||||
<Component {...pageProps} />
|
||||
</LayoutDocs>
|
||||
</Layout>
|
||||
</MDXProvider>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user