Skip to content

Commit c959253

Browse files
authored
fix(firstMile): render routes as array to fix react warning (#5102)
1 parent 11b3a8a commit c959253

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

src/shared/containers/SetOrg.tsx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -302,25 +302,26 @@ const SetOrg: FC = () => {
302302
<Route exact path="/orgs/:orgID" component={MePage} />
303303
)}
304304

305-
{isFlagEnabled('firstMile') && (
306-
<>
307-
<Route
308-
exact
309-
path="/orgs/:orgID/new-user-setup/python"
310-
component={PythonWizard}
311-
/>
312-
<Route
313-
exact
314-
path="/orgs/:orgID/new-user-setup/nodejs"
315-
component={NodejsWizard}
316-
/>
317-
<Route
318-
exact
319-
path="/orgs/:orgID/new-user-setup/golang"
320-
component={GoWizard}
321-
/>
322-
</>
323-
)}
305+
{isFlagEnabled('firstMile') && [
306+
<Route
307+
exact
308+
path="/orgs/:orgID/new-user-setup/python"
309+
key="/python"
310+
component={PythonWizard}
311+
/>,
312+
<Route
313+
exact
314+
path="/orgs/:orgID/new-user-setup/nodejs"
315+
key="/nodejs"
316+
component={NodejsWizard}
317+
/>,
318+
<Route
319+
exact
320+
path="/orgs/:orgID/new-user-setup/golang"
321+
key="/golang"
322+
component={GoWizard}
323+
/>,
324+
]}
324325

325326
<Route component={NotFound} />
326327
</Switch>

0 commit comments

Comments
 (0)