From 912e1b96bfa7d6c022d854fa744f719b49ca98d0 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 21 Jul 2020 15:33:37 +0200 Subject: Add first plotting attempts for portfolios --- .../projects/NewProjectButtonComponent.js | 2 +- .../components/projects/ProjectActionButtons.js | 18 +++++---------- .../src/components/projects/ProjectAuthList.js | 26 +++++++++------------- frontend/src/components/projects/ProjectAuthRow.js | 14 +++--------- 4 files changed, 20 insertions(+), 40 deletions(-) (limited to 'frontend/src/components/projects') diff --git a/frontend/src/components/projects/NewProjectButtonComponent.js b/frontend/src/components/projects/NewProjectButtonComponent.js index 3ddef5e5..312671c6 100644 --- a/frontend/src/components/projects/NewProjectButtonComponent.js +++ b/frontend/src/components/projects/NewProjectButtonComponent.js @@ -4,7 +4,7 @@ import React from 'react' const NewProjectButtonComponent = ({ onClick }) => (
- + New Project
diff --git a/frontend/src/components/projects/ProjectActionButtons.js b/frontend/src/components/projects/ProjectActionButtons.js index 456dd6b6..1c76cc7f 100644 --- a/frontend/src/components/projects/ProjectActionButtons.js +++ b/frontend/src/components/projects/ProjectActionButtons.js @@ -4,26 +4,18 @@ import { Link } from 'react-router-dom' const ProjectActionButtons = ({ projectId, onViewUsers, onDelete }) => ( - - + +
onViewUsers(projectId)} > - +
-
onDelete(projectId)} - > - +
onDelete(projectId)}> +
) diff --git a/frontend/src/components/projects/ProjectAuthList.js b/frontend/src/components/projects/ProjectAuthList.js index 5a2c6695..8eb4f93b 100644 --- a/frontend/src/components/projects/ProjectAuthList.js +++ b/frontend/src/components/projects/ProjectAuthList.js @@ -8,27 +8,23 @@ const ProjectAuthList = ({ authorizations }) => {
{authorizations.length === 0 ? (
- - No projects here yet... Add some with the 'New - Project' button! + + No projects here yet... Add some with the 'New Project' button!
) : ( - - - - - + + + + + - {authorizations.map(authorization => ( - - ))} + {authorizations.map((authorization) => ( + + ))}
Project nameLast editedAccess rights -
Project nameLast editedAccess rights +
)} diff --git a/frontend/src/components/projects/ProjectAuthRow.js b/frontend/src/components/projects/ProjectAuthRow.js index be9de6e0..3f904061 100644 --- a/frontend/src/components/projects/ProjectAuthRow.js +++ b/frontend/src/components/projects/ProjectAuthRow.js @@ -8,20 +8,12 @@ import { parseAndFormatDateTime } from '../../util/date-time' const ProjectAuthRow = ({ projectAuth }) => ( {projectAuth.project.name} + {parseAndFormatDateTime(projectAuth.project.datetimeLastEdited)} - {parseAndFormatDateTime(projectAuth.project.datetimeLastEdited)} - - - + {AUTH_DESCRIPTION_MAP[projectAuth.authorizationLevel]} - + ) -- cgit v1.2.3