Skip to content

Commit

Permalink
Wrap dynamic routes in a single <Routes></Routes>
Browse files Browse the repository at this point in the history
Signed-off-by: Paola <[email protected]>
  • Loading branch information
paolareategui committed May 7, 2024
1 parent 68b00bc commit 97dbde9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/design-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ export const DesignPanel = () => {
/>}/>
)
})}
</Routes>

<Routes >

{untickedForms.map((form: string, index: number) => {
const startIndex: number = index + visibleTypes.length;
return (
Expand All @@ -244,8 +242,7 @@ export const DesignPanel = () => {
handleDeleteCallback={handleDeleteFormTabChange}
/>}/> )
})}
</Routes>
<Routes>

<Route path={maxKeys.toString()} element={
<Grid container spacing={2} pt={3}>
<Grid item xs={12} sm={6}>
Expand Down

0 comments on commit 97dbde9

Please sign in to comment.