From de8f12d74faef5fa3f9e38d1340948cab2d06ea3 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 1 Jul 2020 13:33:31 +0200 Subject: Manually generate IDs --- .../components/simulations/SimulationAuthList.js | 74 +++++++++++----------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'frontend/src/components/simulations/SimulationAuthList.js') diff --git a/frontend/src/components/simulations/SimulationAuthList.js b/frontend/src/components/simulations/SimulationAuthList.js index f29dc96d..dce7fb5c 100644 --- a/frontend/src/components/simulations/SimulationAuthList.js +++ b/frontend/src/components/simulations/SimulationAuthList.js @@ -1,43 +1,43 @@ -import PropTypes from "prop-types"; -import React from "react"; -import Shapes from "../../shapes/index"; -import SimulationAuthRow from "./SimulationAuthRow"; +import PropTypes from 'prop-types' +import React from 'react' +import Shapes from '../../shapes/index' +import SimulationAuthRow from './SimulationAuthRow' const SimulationAuthList = ({ authorizations }) => { - return ( -
- {authorizations.length === 0 ? ( -
- - No simulations here yet... Add some with the 'New - Simulation' button! + return ( +
+ {authorizations.length === 0 ? ( +
+ + No simulations here yet... Add some with the 'New + Simulation' button! +
+ ) : ( + + + + + + + + + + {authorizations.map(authorization => ( + + ))} + +
Simulation nameLast editedAccess rights +
+ )}
- ) : ( - - - - - - - - - - {authorizations.map(authorization => ( - - ))} - -
Simulation nameLast editedAccess rights -
- )} -
- ); -}; + ) +} SimulationAuthList.propTypes = { - authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired -}; + authorizations: PropTypes.arrayOf(Shapes.Authorization).isRequired, +} -export default SimulationAuthList; +export default SimulationAuthList -- cgit v1.2.3