Remove unnecessary attributes 'item' in Grid component
This commit is contained in:
@@ -10,14 +10,14 @@ export default function VersionComparison({versionData}) {
|
||||
return (
|
||||
<Box sx={{padding: 3}}>
|
||||
<Grid container spacing={2}>
|
||||
<Grid item xs={6}>
|
||||
<Grid xs={6}>
|
||||
<Paper sx={{padding: 1, backgroundColor: '#388E3C'}}>
|
||||
<Typography variant='body1' sx={{color: '#fff'}}>
|
||||
{main.contenu}
|
||||
</Typography>
|
||||
</Paper>
|
||||
</Grid>
|
||||
<Grid item xs={6}>
|
||||
<Grid xs={6}>
|
||||
<Paper sx={{padding: 1, backgroundColor: outdated ? '#D32F2F' : '#1976D2'}}>
|
||||
<Typography variant='body1' sx={{color: '#fff'}}>
|
||||
{current.contenu}
|
||||
@@ -31,8 +31,8 @@ export default function VersionComparison({versionData}) {
|
||||
LÉGENDE
|
||||
</Typography>
|
||||
<Grid container spacing={1}>
|
||||
<Grid item container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid item>
|
||||
<Grid container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid>
|
||||
<Paper
|
||||
sx={{
|
||||
padding: 1,
|
||||
@@ -47,7 +47,7 @@ export default function VersionComparison({versionData}) {
|
||||
</Typography>
|
||||
</Paper>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Grid>
|
||||
<Typography
|
||||
variant='body2'
|
||||
sx={{
|
||||
@@ -62,8 +62,8 @@ export default function VersionComparison({versionData}) {
|
||||
</Typography>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid item container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid item>
|
||||
<Grid container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid>
|
||||
<Paper
|
||||
sx={{
|
||||
padding: 1,
|
||||
@@ -78,7 +78,7 @@ export default function VersionComparison({versionData}) {
|
||||
</Typography>
|
||||
</Paper>
|
||||
</Grid>
|
||||
<Grid item xs>
|
||||
<Grid>
|
||||
<Typography
|
||||
variant='body2'
|
||||
sx={{
|
||||
@@ -94,8 +94,8 @@ export default function VersionComparison({versionData}) {
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
||||
<Grid item container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid item>
|
||||
<Grid container xs={12} alignItems='center' spacing={2}>
|
||||
<Grid>
|
||||
<Paper
|
||||
sx={{
|
||||
padding: 1,
|
||||
@@ -110,7 +110,7 @@ export default function VersionComparison({versionData}) {
|
||||
</Typography>
|
||||
</Paper>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
<Grid>
|
||||
<Typography
|
||||
variant='body2'
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user