Remove "wide" page option

This commit is contained in:
Austin Chen 2022-03-30 22:07:23 -07:00
parent 2501b94c65
commit dde4a8b057
3 changed files with 3 additions and 5 deletions

View File

@ -3,20 +3,18 @@ import { BottomNavBar } from './nav/nav-bar'
import Sidebar from './nav/sidebar'
export function Page(props: {
wide?: boolean
margin?: boolean
assertUser?: 'signed-in' | 'signed-out'
rightSidebar?: React.ReactNode
children?: any
}) {
const { wide, margin, assertUser, children, rightSidebar } = props
const { margin, assertUser, children, rightSidebar } = props
return (
<div>
<div
className={clsx(
'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'
)}
>

View File

@ -131,7 +131,7 @@ export default function ContractPage(props: {
) : null
return (
<Page wide={hasSidePanel} rightSidebar={rightSidebar}>
<Page rightSidebar={rightSidebar}>
{ogCardProps && (
<SEO
title={question}

View File

@ -205,7 +205,7 @@ function ContractsTable() {
export default function Admin() {
return useAdmin() ? (
<Page wide>
<Page>
<UsersTable />
<ContractsTable />
</Page>