feat: make billings page responsive
This commit is contained in:
@@ -6,15 +6,8 @@ import Button from '@mui/material/Button';
|
|||||||
import Card from '@mui/material/Card';
|
import Card from '@mui/material/Card';
|
||||||
import CardActions from '@mui/material/CardActions';
|
import CardActions from '@mui/material/CardActions';
|
||||||
import CardContent from '@mui/material/CardContent';
|
import CardContent from '@mui/material/CardContent';
|
||||||
import Chip from '@mui/material/Chip';
|
|
||||||
import Divider from '@mui/material/Divider';
|
import Divider from '@mui/material/Divider';
|
||||||
import Grid from '@mui/material/Grid';
|
import Grid from '@mui/material/Grid';
|
||||||
import Paper from '@mui/material/Paper';
|
|
||||||
import Table from '@mui/material/Table';
|
|
||||||
import TableBody from '@mui/material/TableBody';
|
|
||||||
import TableCell from '@mui/material/TableCell';
|
|
||||||
import TableContainer from '@mui/material/TableContainer';
|
|
||||||
import TableRow from '@mui/material/TableRow';
|
|
||||||
import Typography from '@mui/material/Typography';
|
import Typography from '@mui/material/Typography';
|
||||||
|
|
||||||
import useUsageData from 'hooks/useUsageData.ee';
|
import useUsageData from 'hooks/useUsageData.ee';
|
||||||
@@ -24,7 +17,7 @@ export default function UsageDataInformation() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Card sx={{ minWidth: 275, mb: 3, p: 2 }}>
|
<Card sx={{ mb: 3, p: 2 }}>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Box sx={{ mb: 1, display: 'flex', justifyContent: 'space-between' }}>
|
<Box sx={{ mb: 1, display: 'flex', justifyContent: 'space-between' }}>
|
||||||
<Typography variant="h6" fontWeight="bold">
|
<Typography variant="h6" fontWeight="bold">
|
||||||
@@ -33,12 +26,19 @@ export default function UsageDataInformation() {
|
|||||||
{/* <Chip label="Active" color="success" /> */}
|
{/* <Chip label="Active" color="success" /> */}
|
||||||
</Box>
|
</Box>
|
||||||
<Divider sx={{ mb: 3 }} />
|
<Divider sx={{ mb: 3 }} />
|
||||||
<Grid container item xs={12} spacing={2}>
|
<Grid
|
||||||
<Grid item xs={4} sx={{ mb: [2, 5] }}>
|
container
|
||||||
|
item
|
||||||
|
xs={12}
|
||||||
|
spacing={1}
|
||||||
|
sx={{ mb: [2, 2, 8] }}
|
||||||
|
alignItems="stretch"
|
||||||
|
>
|
||||||
|
<Grid item xs={12} md={4}>
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
mb: 3,
|
height: '100%',
|
||||||
backgroundColor: '#fafafa',
|
backgroundColor: (theme) => theme.palette.background.default,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
@@ -54,31 +54,35 @@ export default function UsageDataInformation() {
|
|||||||
</CardActions>
|
</CardActions>
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={4} sx={{ mb: [2, 5] }}>
|
|
||||||
|
<Grid item xs={12} md={4}>
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
mb: 3,
|
height: '100%',
|
||||||
backgroundColor: '#fafafa',
|
backgroundColor: (theme) => theme.palette.background.default,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
<Typography variant="subtitle2" sx={{ pb: 0.5 }}>
|
<Typography variant="subtitle2" sx={{ pb: 0.5 }}>
|
||||||
Next bill amount
|
Next bill amount
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography variant="h6" fontWeight="bold">
|
<Typography variant="h6" fontWeight="bold">
|
||||||
---
|
---
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|
||||||
<CardActions>
|
<CardActions>
|
||||||
{/* <Button size="small">Update billing info</Button> */}
|
{/* <Button size="small">Update billing info</Button> */}
|
||||||
</CardActions>
|
</CardActions>
|
||||||
</Card>
|
</Card>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={4} sx={{ mb: [2, 5] }}>
|
|
||||||
|
<Grid item xs={12} md={4}>
|
||||||
<Card
|
<Card
|
||||||
sx={{
|
sx={{
|
||||||
mb: 3,
|
height: '100%',
|
||||||
backgroundColor: '#fafafa',
|
backgroundColor: (theme) => theme.palette.background.default,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<CardContent>
|
<CardContent>
|
||||||
@@ -89,6 +93,7 @@ export default function UsageDataInformation() {
|
|||||||
---
|
---
|
||||||
</Typography>
|
</Typography>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|
||||||
<CardActions>
|
<CardActions>
|
||||||
{/* <Button disabled size="small">
|
{/* <Button disabled size="small">
|
||||||
monthly billing
|
monthly billing
|
||||||
@@ -101,6 +106,7 @@ export default function UsageDataInformation() {
|
|||||||
<Typography variant="h6" fontWeight="bold">
|
<Typography variant="h6" fontWeight="bold">
|
||||||
Your usage
|
Your usage
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box>
|
<Box>
|
||||||
<Typography
|
<Typography
|
||||||
variant="subtitle2"
|
variant="subtitle2"
|
||||||
@@ -109,7 +115,9 @@ export default function UsageDataInformation() {
|
|||||||
Last 30 days total usage
|
Last 30 days total usage
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Divider sx={{ mt: 2 }} />
|
<Divider sx={{ mt: 2 }} />
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -123,6 +131,7 @@ export default function UsageDataInformation() {
|
|||||||
>
|
>
|
||||||
Tasks
|
Tasks
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Typography
|
<Typography
|
||||||
variant="subtitle2"
|
variant="subtitle2"
|
||||||
sx={{ color: 'text.secondary', mt: 2, fontWeight: 500 }}
|
sx={{ color: 'text.secondary', mt: 2, fontWeight: 500 }}
|
||||||
@@ -130,8 +139,10 @@ export default function UsageDataInformation() {
|
|||||||
12300
|
12300
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Divider sx={{ mt: 2 }} />
|
<Divider sx={{ mt: 2 }} />
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button size="small" variant="contained" sx={{ mt: 2 }}>
|
<Button size="small" variant="contained" sx={{ mt: 2 }}>
|
||||||
Upgrade
|
Upgrade
|
||||||
</Button>
|
</Button>
|
||||||
|
Reference in New Issue
Block a user