summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/components/projects
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-07-05 21:40:24 +0200
committerGitHub <noreply@github.com>2021-07-05 21:40:24 +0200
commitdfd2ded56780995cec6d91af37443b710d4ddb3b (patch)
tree3e6ae47dba2dac42a3bf722709dbe75437966e4f /opendc-web/opendc-web-ui/src/components/projects
parent49fc69c9cf154f9ad727e58f451e4be24dbaaff0 (diff)
parent0e52785dfc5e99f48718530976083cfbd1507651 (diff)
ui: Upgrade to Next.js 11
This pull request updates the OpenDC frontend to use Next.js 11. * Upgrade to Next.js 11 * Enable React Strict mode * Enable ESLint * Fix ESLint issues
Diffstat (limited to 'opendc-web/opendc-web-ui/src/components/projects')
-rw-r--r--opendc-web/opendc-web-ui/src/components/projects/ProjectActionButtons.js2
-rw-r--r--opendc-web/opendc-web-ui/src/components/projects/ProjectList.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/opendc-web/opendc-web-ui/src/components/projects/ProjectActionButtons.js b/opendc-web/opendc-web-ui/src/components/projects/ProjectActionButtons.js
index 0725e42b..4adf3205 100644
--- a/opendc-web/opendc-web-ui/src/components/projects/ProjectActionButtons.js
+++ b/opendc-web/opendc-web-ui/src/components/projects/ProjectActionButtons.js
@@ -7,7 +7,7 @@ import { faPlay, faUsers, faTrash } from '@fortawesome/free-solid-svg-icons'
const ProjectActionButtons = ({ projectId, onViewUsers, onDelete }) => (
<td className="text-right">
- <Link href={`/projects/${projectId}`}>
+ <Link href={`/projects/${projectId}`} passHref>
<Button color="primary" outline size="sm" className="mr-2" title="Open this project">
<FontAwesomeIcon icon={faPlay} />
</Button>
diff --git a/opendc-web/opendc-web-ui/src/components/projects/ProjectList.js b/opendc-web/opendc-web-ui/src/components/projects/ProjectList.js
index dc3f85ec..46ef4691 100644
--- a/opendc-web/opendc-web-ui/src/components/projects/ProjectList.js
+++ b/opendc-web/opendc-web-ui/src/components/projects/ProjectList.js
@@ -11,7 +11,7 @@ const ProjectList = ({ projects }) => {
{projects.length === 0 ? (
<div className="alert alert-info">
<FontAwesomeIcon icon={faQuestionCircle} className="info-icon mr-2" />
- <strong>No projects here yet...</strong> Add some with the 'New Project' button!
+ <strong>No projects here yet...</strong> Add some with the &lsquo;New Project&rsquo; button!
</div>
) : (
<table className="table table-striped">