Adapt AwtisDetay with new API response
This commit is contained in:
@@ -75,7 +75,7 @@ export default function AwtisDetay({anAwtis}) {
|
|||||||
)}
|
)}
|
||||||
<Grid size={{xs: 12, md: 6}}>
|
<Grid size={{xs: 12, md: 6}}>
|
||||||
<Box marginbottom={3}>
|
<Box marginbottom={3}>
|
||||||
{paroles.data.length > 1 ? (
|
{paroles.length > 1 ? (
|
||||||
<Accordion>
|
<Accordion>
|
||||||
<AccordionSummary
|
<AccordionSummary
|
||||||
expandIcon={<ExpandMoreIcon />}
|
expandIcon={<ExpandMoreIcon />}
|
||||||
@@ -83,11 +83,11 @@ export default function AwtisDetay({anAwtis}) {
|
|||||||
id='panel-teks-header'
|
id='panel-teks-header'
|
||||||
>
|
>
|
||||||
<Typography sx={{marginRight: 2, textAlign:'center' }} variant='body1' component='h2'><strong>Liste des paroles</strong></Typography>
|
<Typography sx={{marginRight: 2, textAlign:'center' }} variant='body1' component='h2'><strong>Liste des paroles</strong></Typography>
|
||||||
<Chip color='primary' label={paroles.data.length} size='small' variant='contained' />
|
<Chip color='primary' label={paroles.length} size='small' variant='contained' />
|
||||||
</AccordionSummary>
|
</AccordionSummary>
|
||||||
<AccordionDetails sx={{paddingInline: 0}}>
|
<AccordionDetails sx={{paddingInline: 0}}>
|
||||||
{sortedTeks.map(anPawol => {
|
{sortedTeks.map(anPawol => {
|
||||||
const {couverture} = anPawol.attributes
|
const {couverture} = anPawol
|
||||||
const kuvetiFormat = formatKuveti(couverture)
|
const kuvetiFormat = formatKuveti(couverture)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user