mango-ui-v3/pages/index.tsx

27 lines
820 B
TypeScript
Raw Normal View History

import TopBar from '../components/TopBar'
2021-04-02 11:26:21 -07:00
import TradePageGrid from '../components/TradePageGrid'
2021-04-06 15:11:42 -07:00
import MarketSelect from '../components/MarketSelect'
2021-04-15 09:34:59 -07:00
import AlphaModal from '../components/AlphaModal'
import MarketHeader from '../components/MarketHeader'
2021-04-15 09:34:59 -07:00
import useLocalStorageState from '../hooks/useLocalStorageState'
const Index = () => {
2021-06-08 07:59:39 -07:00
const [alphaAccepted] = useLocalStorageState('mangoAlphaAccepted-2.0', false)
2021-04-06 15:11:42 -07:00
return (
2021-04-13 07:10:57 -07:00
<div className={`bg-th-bkg-1 text-th-fgd-1 transition-all `}>
2021-04-02 11:26:21 -07:00
<TopBar />
2021-04-11 14:25:01 -07:00
<MarketSelect />
<MarketHeader />
<div className={`min-h-screen p-1 sm:px-2 sm:py-1 md:px-6 md:py-1`}>
2021-04-02 11:26:21 -07:00
<TradePageGrid />
</div>
2021-04-15 09:34:59 -07:00
{!alphaAccepted && (
<AlphaModal isOpen={!alphaAccepted} onClose={() => {}} />
)}
</div>
)
}
2021-03-26 09:44:55 -07:00
export default Index