fix token/perp page bottom padding

This commit is contained in:
saml33 2023-05-01 13:13:53 +10:00
parent f44a323aff
commit 9d37cf2007
1 changed files with 19 additions and 15 deletions

View File

@ -34,22 +34,26 @@ const StatsPage = () => {
const tabsWithCount: [string, number][] = useMemo(() => {
return TABS.map((t) => [t, 0])
}, [])
return market ? (
<PerpStatsPage />
) : token ? (
<TokenPage />
) : (
return (
<div className="pb-20 md:pb-16">
<div className="border-b border-th-bkg-3">
<TabButtons
activeValue={activeTab}
fillWidth={fullWidthTabs}
onChange={(v) => setActiveTab(v)}
showBorders
values={tabsWithCount}
/>
</div>
<TabContent activeTab={activeTab} />
{market ? (
<PerpStatsPage />
) : token ? (
<TokenPage />
) : (
<>
<div className="border-b border-th-bkg-3">
<TabButtons
activeValue={activeTab}
fillWidth={fullWidthTabs}
onChange={(v) => setActiveTab(v)}
showBorders
values={tabsWithCount}
/>
</div>
<TabContent activeTab={activeTab} />
</>
)}
</div>
)
}