Reduce KatStats

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-06-04 01:38:19 +04:00
parent c6d4b5a08d
commit c6131ffc43
4 changed files with 9 additions and 17 deletions
+4 -1
View File
@@ -80,7 +80,10 @@ export default function Home({errorCode, errorMessage, stats}) {
<KatKayLa tit='Paroles' kantite={stats.countParole} href='/paroles' as='/paroles' />
<KatKayLa tit='Artistes' kantite={stats.countArtiste} href='/awtis?paj&paj=1' as='/awtis/paj/1' />
</Grid>
<Grid container spacing={2} marginBottom={3}>
<Typography marginBottom={2} textAlign='center' sx={{fontWeight: 'bold'}} variant='h6' component='h4'>
Traductions
</Typography>
<Grid container justifyContent='space-between' spacing={2} marginBottom={3}>
{statsByLang.map(({code, value, emoji}) => (
<KatStats key={code} emoji={emoji} value={value} total={stats.countParole} />
))}