2021-03-30 15:47:08 -07:00
|
|
|
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-05-17 22:33:04 -07:00
|
|
|
import MarketHeader from '../components/MarketHeader'
|
2021-04-15 09:34:59 -07:00
|
|
|
import useLocalStorageState from '../hooks/useLocalStorageState'
|
2021-03-30 15:47:08 -07:00
|
|
|
|
|
|
|
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
|
|
|
|
2021-03-30 15:47:08 -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 />
|
2021-05-17 22:33:04 -07:00
|
|
|
<MarketHeader />
|
2021-07-19 20:04:26 -07:00
|
|
|
<div className={`min-h-screen p-1 sm:px-2 sm:py-1 md:px-2 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={() => {}} />
|
|
|
|
)}
|
2021-03-30 15:47:08 -07:00
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
2021-03-26 09:44:55 -07:00
|
|
|
|
2021-03-30 15:47:08 -07:00
|
|
|
export default Index
|