docs: move edit date to footer (#11667)
* docs: move edit date to footer * fix build error
This commit is contained in:
@@ -9,11 +9,9 @@ export type RootLayoutProps = {
|
||||
bodyClassName?: string
|
||||
showToc?: boolean
|
||||
sidebarProps?: SidebarProps
|
||||
showPagination?: boolean
|
||||
feedbackComponent?: React.ReactNode
|
||||
editComponent?: React.ReactNode
|
||||
showBreadcrumbs?: boolean
|
||||
ProvidersComponent: React.FC<{ children: React.ReactNode }>
|
||||
footerComponent?: React.ReactNode
|
||||
} & MainContentLayoutProps
|
||||
|
||||
export const RootLayout = ({
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import React from "react"
|
||||
import { RootLayout, RootLayoutProps } from "./root"
|
||||
import clsx from "clsx"
|
||||
import { Breadcrumbs, Pagination } from ".."
|
||||
import { Breadcrumbs } from ".."
|
||||
|
||||
export const TightLayout = ({
|
||||
children,
|
||||
showPagination,
|
||||
feedbackComponent,
|
||||
editComponent,
|
||||
footerComponent,
|
||||
showBreadcrumbs = true,
|
||||
...props
|
||||
}: RootLayoutProps) => {
|
||||
@@ -24,9 +22,7 @@ export const TightLayout = ({
|
||||
>
|
||||
{showBreadcrumbs && <Breadcrumbs />}
|
||||
{children}
|
||||
{feedbackComponent}
|
||||
{showPagination && <Pagination />}
|
||||
{editComponent}
|
||||
{footerComponent}
|
||||
</div>
|
||||
</RootLayout>
|
||||
)
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
import React from "react"
|
||||
import { RootLayout, RootLayoutProps } from "./root"
|
||||
import clsx from "clsx"
|
||||
import { Breadcrumbs, Pagination } from ".."
|
||||
import { Breadcrumbs } from ".."
|
||||
|
||||
export const WideLayout = ({
|
||||
children,
|
||||
showPagination,
|
||||
feedbackComponent,
|
||||
editComponent,
|
||||
footerComponent,
|
||||
showBreadcrumbs = true,
|
||||
...props
|
||||
}: RootLayoutProps) => {
|
||||
@@ -20,9 +18,7 @@ export const WideLayout = ({
|
||||
<main className={clsx("relative mt-4 w-full flex-1 lg:mt-7")}>
|
||||
{showBreadcrumbs && <Breadcrumbs />}
|
||||
{children}
|
||||
{feedbackComponent}
|
||||
{showPagination && <Pagination />}
|
||||
{editComponent}
|
||||
{footerComponent}
|
||||
</main>
|
||||
</RootLayout>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user