mango-ui-v3/pages/index.tsx

26 lines
819 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-08-30 13:40:32 -07:00
import AlphaModal, { ALPHA_MODAL_KEY } from '../components/AlphaModal'
2021-04-15 09:34:59 -07:00
import useLocalStorageState from '../hooks/useLocalStorageState'
import { PageBodyWrapper } from '../components/styles'
const Index = () => {
2021-08-30 13:40:32 -07:00
const [alphaAccepted] = useLocalStorageState(ALPHA_MODAL_KEY, 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 />
<PageBodyWrapper className="p-1 sm:px-2 sm:py-1 md:px-2 md:py-1">
2021-04-02 11:26:21 -07:00
<TradePageGrid />
</PageBodyWrapper>
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