11import { FC } from 'react'
22import { DashboardDivider } from '../../components/Divider'
3- import Grid from '@mui/material/Grid'
4- import { useScreenSize } from '../../hooks/useScreensize'
53import { isLocalnet } from '../../utils/route-utils'
64import { Social } from '../../components/Social'
75import { LearningMaterials } from './LearningMaterials'
@@ -18,7 +16,6 @@ import { LatestRoflApps } from './LatestRoflApps'
1816import { paraTimesConfig } from '../../../config'
1917
2018export const ParatimeDashboardPage : FC = ( ) => {
21- const { isMobile } = useScreenSize ( )
2219 const scope = useRuntimeScope ( )
2320 const isLocal = isLocalnet ( scope . network )
2421 const { txMethod, setTxMethod } = useRuntimeTxMethodParam ( )
@@ -28,28 +25,28 @@ export const ParatimeDashboardPage: FC = () => {
2825 { ! isLocal && < ParaTimeSnapshot scope = { scope } /> }
2926 < DashboardDivider />
3027 < LatestRuntimeTransactions scope = { scope } txMethod = { txMethod } setTxMethod = { setTxMethod } />
31- < Grid container spacing = { 4 } >
32- < Grid item xs = { 12 } lg = { 6 } sx = { { display : ' flex' , order : isMobile ? 1 : 0 } } >
28+ < div className = "grid grid-cols-1 lg:grid-cols-2 gap-x-6" >
29+ < div className = " flex order-1 md:order-0" >
3330 < LearningMaterials scope = { scope } />
34- </ Grid >
35- < Grid item xs = { 12 } lg = { 6 } >
31+ </ div >
32+ < div className = "flex" >
3633 < LatestRuntimeBlocks scope = { scope } />
37- </ Grid >
38- < Grid item xs = { 12 } >
34+ </ div >
35+ < div className = "col-span-1 lg:col-span-2" >
3936 < TopTokens scope = { scope } />
4037 { paraTimesConfig [ scope . layer ] ?. offerRoflTxTypes && < LatestRoflApps scope = { scope } /> }
41- </ Grid >
42- </ Grid >
38+ </ div >
39+ </ div >
4340 { ! isLocal && (
4441 < >
45- < Grid container spacing = { 4 } >
46- < Grid item xs = { 12 } lg = { 6 } >
42+ < div className = "grid grid-cols-12 gap-x-6" >
43+ < div className = "col-span-12 lg:col-span-6" >
4744 < TransactionsStats scope = { scope } />
48- </ Grid >
49- < Grid item xs = { 12 } lg = { 6 } >
45+ </ div >
46+ < div className = "col-span-12 lg:col-span-6" >
5047 < TotalTransactions scope = { scope } />
51- </ Grid >
52- </ Grid >
48+ </ div >
49+ </ div >
5350 < Social />
5451 </ >
5552 ) }
0 commit comments