From a1d95b3685cffb6a9344d0d1e5505dd391193f16 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 15 Sep 2017 12:53:26 +0200 Subject: Implement experiment list and add --- src/components/simulations/SimulationAuthList.js | 40 ++++++++++++++---------- 1 file changed, 23 insertions(+), 17 deletions(-) (limited to 'src/components/simulations/SimulationAuthList.js') diff --git a/src/components/simulations/SimulationAuthList.js b/src/components/simulations/SimulationAuthList.js index 7653f178..fd5173a8 100644 --- a/src/components/simulations/SimulationAuthList.js +++ b/src/components/simulations/SimulationAuthList.js @@ -1,27 +1,33 @@ import PropTypes from 'prop-types'; import React from 'react'; import Shapes from "../../shapes/index"; -import NoSimulationsAlert from "./NoSimulationsAlert"; -import SimulationAuth from "./SimulationAuth"; import "./SimulationAuthList.css"; +import SimulationAuthRow from "./SimulationAuthRow"; const SimulationAuthList = ({authorizations}) => { - if (authorizations.length === 0) { - return ; - } - return ( -
-
-
Simulation name
-
Last edited
-
Access rights
-
-
- {authorizations.map(authorization => ( - - ))} -
+
+ {authorizations.length === 0 ? +
+ + No simulations here yet... Add some with the 'New Simulation' button! +
: + + + + + + + + + + {authorizations.map(authorization => ( + + ))} + +
Simulation nameLast editedAccess rights +
+ }
); }; -- cgit v1.2.3