🐛 fix(ProjectSpotlight): fix and cleanup hydration error warnings

This commit is contained in:
2026-02-13 15:50:17 +01:00
parent c713a14b62
commit bd96bca168
@@ -44,9 +44,7 @@ const Description = (props: Props) => {
<Typography variant="h4">{props.title}</Typography> <Typography variant="h4">{props.title}</Typography>
{props.caption} {props.caption}
</Grid> </Grid>
<Grid component={Typography} size={8}> <Grid size={8}>{props.children}</Grid>
{props.children}
</Grid>
</Grid> </Grid>
</Box> </Box>
) )
@@ -73,9 +71,7 @@ const Description = (props: Props) => {
<Typography variant="h4">{props.title}</Typography> <Typography variant="h4">{props.title}</Typography>
{props.caption} {props.caption}
</Grid> </Grid>
<Grid component={Typography} size={8}> <Grid size={8}>{props.children}</Grid>
{props.children}
</Grid>
</Grid> </Grid>
</Box> </Box>
) )
@@ -98,7 +94,7 @@ const Description = (props: Props) => {
})}> })}>
<Typography variant="h4">{props.title}</Typography> <Typography variant="h4">{props.title}</Typography>
{props.caption} {props.caption}
<Typography mt={3}>{props.children}</Typography> <Box mt={3}>{props.children}</Box>
</Box> </Box>
) )
case 'left': case 'left':
@@ -118,9 +114,11 @@ const Description = (props: Props) => {
p: `${theme.spacing(10)} ${theme.spacing(5)} ${theme.spacing(5)} ${theme.spacing(5)}`, p: `${theme.spacing(10)} ${theme.spacing(5)} ${theme.spacing(5)} ${theme.spacing(5)}`,
// p: '5.1em 3.1em 3.1em 3.1em', // p: '5.1em 3.1em 3.1em 3.1em',
})}> })}>
<Typography variant="h4">{props.title}</Typography> <Typography variant="h4" mb={3}>
{props.title}
</Typography>
{props.caption} {props.caption}
<Typography mt={3}>{props.children}</Typography> <Box mt={3}>{props.children}</Box>
</Box> </Box>
) )
} }