From b4bdf9fde013bb7ff9579693b64ff575f7b00e44 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 7 Jul 2020 09:55:10 +0200 Subject: Rename simulations to projects and remove experiment view --- .../src/components/projects/ProjectAuthList.js | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 frontend/src/components/projects/ProjectAuthList.js (limited to 'frontend/src/components/projects/ProjectAuthList.js') diff --git a/frontend/src/components/projects/ProjectAuthList.js b/frontend/src/components/projects/ProjectAuthList.js new file mode 100644 index 00000000..5a2c6695 --- /dev/null +++ b/frontend/src/components/projects/ProjectAuthList.js @@ -0,0 +1,43 @@ +import PropTypes from 'prop-types' +import React from 'react' +import Shapes from '../../shapes/index' +import ProjectAuthRow from './ProjectAuthRow' + +const ProjectAuthList = ({ authorizations }) => { + return ( +
+ {authorizations.length === 0 ? ( +
+ + No projects here yet... Add some with the 'New + Project' button! +
+ ) : ( + + + + + + + + + + {authorizations.map(authorization => ( + + ))} + +
Project nameLast editedAccess rights +
+ )} +
+ ) +} + +ProjectAuthList.propTypes = { + authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired, +} + +export default ProjectAuthList -- cgit v1.2.3