make leaderboard margin same as other pages
This commit is contained in:
parent
8219929227
commit
b99f9dd193
|
@ -5,20 +5,16 @@ import Sidebar from './nav/sidebar'
|
|||
import { Toaster } from 'react-hot-toast'
|
||||
|
||||
export function Page(props: {
|
||||
margin?: boolean
|
||||
rightSidebar?: ReactNode
|
||||
suspend?: boolean
|
||||
children?: ReactNode
|
||||
}) {
|
||||
const { margin, children, rightSidebar, suspend } = props
|
||||
const { children, rightSidebar, suspend } = props
|
||||
|
||||
return (
|
||||
<>
|
||||
<div
|
||||
className={clsx(
|
||||
'mx-auto w-full pb-14 lg:grid lg:grid-cols-12 lg:gap-2 lg:pt-6 xl:max-w-7xl xl:gap-8',
|
||||
margin && 'px-4'
|
||||
)}
|
||||
className="mx-auto w-full pb-14 lg:grid lg:grid-cols-12 lg:gap-2 lg:pt-6 xl:max-w-7xl xl:gap-8"
|
||||
style={suspend ? visuallyHiddenStyle : undefined}
|
||||
>
|
||||
<Toaster />
|
||||
|
|
|
@ -36,8 +36,8 @@ export default function Leaderboards(props: {
|
|||
useTracking('view leaderboards')
|
||||
|
||||
return (
|
||||
<Page margin>
|
||||
<Col className="items-center gap-10 lg:flex-row">
|
||||
<Page>
|
||||
<Col className="mx-4 items-center gap-10 lg:mx-0 lg:flex-row">
|
||||
<Leaderboard
|
||||
title="🏅 Top bettors"
|
||||
users={topTraders}
|
||||
|
|
Loading…
Reference in New Issue
Block a user