config
This commit is contained in:
parent
fad8d34776
commit
a61510ed8c
1 changed files with 13 additions and 8 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import WorkspacePremiumIcon from '@mui/icons-material/WorkspacePremium';
|
import WorkspacePremiumIcon from '@mui/icons-material/WorkspacePremium';
|
||||||
import { Grid, Tooltip, Typography } from '@mui/material';
|
import { Grid, Tooltip, Typography } from '@mui/material';
|
||||||
|
import { Stack } from '@material-ui/core';
|
||||||
|
|
||||||
function Badge({
|
function Badge({
|
||||||
title = 'Good Question',
|
title = 'Good Question',
|
||||||
|
|
@ -31,16 +32,20 @@ export default function Badges({ badges: { obtained, unobtained } }) {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
||||||
<Grid item xs={2} sm={4} md={4}>
|
<Stack direction="row" spacing={2}>
|
||||||
<Typography variant='h5'>Obtained Badges</Typography>
|
<Grid item xs={2} sm={4} md={4}>
|
||||||
</Grid>
|
<Typography variant='h5'>Obtained Badges</Typography>
|
||||||
{badgesGrid(obtained)}
|
</Grid>
|
||||||
|
{badgesGrid(obtained)}
|
||||||
|
</Stack>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
<Grid container spacing={{ xs: 2, md: 3 }} columns={{ xs: 4, sm: 8, md: 12 }}>
|
||||||
<Grid item xs={2} sm={4} md={4}>
|
<Stack direction="row" spacing={2}>
|
||||||
<Typography variant='h5'>Unobtained Badges</Typography>
|
<Grid item xs={2} sm={4} md={4}>
|
||||||
</Grid>
|
<Typography variant='h5'>Unobtained Badges</Typography>
|
||||||
{badgesGrid(unobtained)}
|
</Grid>
|
||||||
|
{badgesGrid(unobtained)}
|
||||||
|
</Stack>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Reference in a new issue