Remove "wide" page option
This commit is contained in:
parent
2501b94c65
commit
dde4a8b057
|
@ -3,20 +3,18 @@ import { BottomNavBar } from './nav/nav-bar'
|
||||||
import Sidebar from './nav/sidebar'
|
import Sidebar from './nav/sidebar'
|
||||||
|
|
||||||
export function Page(props: {
|
export function Page(props: {
|
||||||
wide?: boolean
|
|
||||||
margin?: boolean
|
margin?: boolean
|
||||||
assertUser?: 'signed-in' | 'signed-out'
|
assertUser?: 'signed-in' | 'signed-out'
|
||||||
rightSidebar?: React.ReactNode
|
rightSidebar?: React.ReactNode
|
||||||
children?: any
|
children?: any
|
||||||
}) {
|
}) {
|
||||||
const { wide, margin, assertUser, children, rightSidebar } = props
|
const { margin, assertUser, children, rightSidebar } = props
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'mx-auto w-full pb-16 lg:grid lg:grid-cols-12 lg:gap-8 xl:max-w-7xl',
|
'mx-auto w-full pb-16 lg:grid lg:grid-cols-12 lg:gap-8 xl:max-w-7xl',
|
||||||
wide ? 'max-w-6xl' : 'max-w-4xl',
|
|
||||||
margin && 'px-4'
|
margin && 'px-4'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
@ -131,7 +131,7 @@ export default function ContractPage(props: {
|
||||||
) : null
|
) : null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page wide={hasSidePanel} rightSidebar={rightSidebar}>
|
<Page rightSidebar={rightSidebar}>
|
||||||
{ogCardProps && (
|
{ogCardProps && (
|
||||||
<SEO
|
<SEO
|
||||||
title={question}
|
title={question}
|
||||||
|
|
|
@ -205,7 +205,7 @@ function ContractsTable() {
|
||||||
|
|
||||||
export default function Admin() {
|
export default function Admin() {
|
||||||
return useAdmin() ? (
|
return useAdmin() ? (
|
||||||
<Page wide>
|
<Page>
|
||||||
<UsersTable />
|
<UsersTable />
|
||||||
<ContractsTable />
|
<ContractsTable />
|
||||||
</Page>
|
</Page>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user