Add prop id to content component

This commit is contained in:
Emili Castells Guasch 2025-01-03 16:49:38 +01:00
parent acfdb3d163
commit 23077a14ee
5 changed files with 23 additions and 12 deletions

View file

@ -18,8 +18,10 @@ const SettingsCard = ( {
if ( contentItems ) {
return (
<ContentWrapper>
{ contentItems.map( ( item, index ) => (
<Content key={ index }>{ item }</Content>
{ contentItems.map( ( item ) => (
<Content key={ item.key } id={ item.key }>
{ item }
</Content>
) ) }
</ContentWrapper>
);