This commit is contained in:
saml33 2023-07-03 10:01:10 +10:00
parent 9891734675
commit c48b72a79d
3 changed files with 4 additions and 3 deletions

View File

@ -9,7 +9,7 @@ const SecondaryTabBar = ({
setActiveTab: (tab: string) => void
tabs: string[]
}) => {
const { t } = useTranslation(['common', 'activity'])
const { t } = useTranslation(['common', 'activity', 'trade'])
return (
<div className="flex h-14 items-center justify-between bg-th-bkg-2">
<div className="hide-scroll flex space-x-2 pl-4 md:pl-6">

View File

@ -6,7 +6,7 @@ import PerpMarketsDetailsTable from './PerpMarketDetailsTable'
import PerpMarketsOverviewTable from './PerpMarketsOverviewTable'
import PerpMarketsPositions from './PerpMarketsPositions'
export const TABS = ['overview', 'details', 'trade:positions']
const TABS = ['overview', 'details', 'trade:positions']
const PerpStats = () => {
const [activeTab, setActiveTab] = useState(TABS[0])

View File

@ -4,7 +4,8 @@ import useMangoAccount from 'hooks/useMangoAccount'
import SecondaryTabBar from '@components/shared/SecondaryTabBar'
import TokenOverviewTable from './TokenOverviewTable'
import TokenDetailsTable from './TokenDetailsTable'
import { TABS } from './PerpStats'
const TABS = ['overview', 'details']
const TokenStats = () => {
const [activeTab, setActiveTab] = useState(TABS[0])