mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): add key to map fragment (#55786)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React from 'react';
|
||||
import React, { Fragment } from 'react';
|
||||
import { graphql, useStaticQuery } from 'gatsby';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { connect } from 'react-redux';
|
||||
@@ -182,7 +182,7 @@ function Map({
|
||||
return (
|
||||
<div className='map-ui' data-test-label='curriculum-map'>
|
||||
{getStageOrder({ showNewCurriculum, showUpcomingChanges }).map(stage => (
|
||||
<>
|
||||
<Fragment key={stage}>
|
||||
<h2 className={forLanding ? 'big-heading' : ''}>
|
||||
{t(superBlockHeadings[stage])}
|
||||
</h2>
|
||||
@@ -201,7 +201,7 @@ function Map({
|
||||
))}
|
||||
</ul>
|
||||
<Spacer size='medium' />
|
||||
</>
|
||||
</Fragment>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user