diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-10-27 11:36:19 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2022-10-27 11:38:06 +0200 |
| commit | d40772d2b54040a851223575e8c99eda4567f3a3 (patch) | |
| tree | 8b72f12998c18636f79944ab9ed1f4503ce8e068 /opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js | |
| parent | 18b7ec85dde70ae0bd74d638d573daeaf3e4365f (diff) | |
build(web/ui): Update to Next 13 and React 18
This change updates the web interface to use Next 13 and React 18. This
release has a couple breaking changes (related to links) which we have fixed
accordingly.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js')
| -rw-r--r-- | opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js b/opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js index 70f02812..a26fed46 100644 --- a/opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js +++ b/opendc-web/opendc-web-ui/src/components/projects/ProjectCollection.js @@ -1,3 +1,4 @@ +import Link from 'next/link' import { Gallery, Bullseye, @@ -25,7 +26,6 @@ import React, { useReducer, useMemo } from 'react' import { Project, Status } from '../../shapes' import { parseAndFormatDateTime } from '../../util/date-time' import { AUTH_DESCRIPTION_MAP, AUTH_ICON_MAP, AUTH_NAME_MAP } from '../../util/authorizations' -import NavItemLink from '../util/NavItemLink' import TableEmptyState from '../util/TableEmptyState' function ProjectCard({ project, onDelete }) { @@ -70,7 +70,7 @@ function ProjectCard({ project, onDelete }) { /> </CardActions> </CardHeader> - <CardTitle component={NavItemLink} className="pf-u-pb-0" href={`/projects/${id}`}> + <CardTitle component={Link} className="pf-u-pb-0" href={`/projects/${id}`}> {name} </CardTitle> <CardBody isFilled={false}> |
