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