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' 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'
)} )}
> >

View File

@ -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}

View File

@ -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>