Skip to content

Commit

Permalink
Merge pull request #4179 from JoinColony/fix/console-key-routes-error
Browse files Browse the repository at this point in the history
fix: add keys to avoid console keys error
  • Loading branch information
Nortsova authored Jan 29, 2025
2 parents 18f7bb9 + b661d21 commit a9d9969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CardWithCallout: FC<PropsWithChildren<CardWithCalloutProps>> = ({
<div className="flex flex-wrap items-center justify-between gap-x-4 gap-y-3 md:flex-nowrap md:gap-y-0">
<div>
{subtitle && <h2 className="mb-1 text-md font-medium">{subtitle}</h2>}
{children && <p className="text-sm text-gray-600">{children}</p>}
{children && <div className="text-sm text-gray-600">{children}</div>}
</div>
{button}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/routes/Routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const Routes = () => {
// Allow in use colony names
.filter((route) => !['/meta', '/beta'].includes(route))
.map((route) => (
<Route path={route} element={<NotFoundRoute />} />
<Route path={route} key={route} element={<NotFoundRoute />} />
))}

{/* Colony routes */}
Expand Down

0 comments on commit a9d9969

Please sign in to comment.