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 --- .../experiments/ExperimentRowComponent.js | 70 +++++++++++----------- 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'frontend/src/components/experiments/ExperimentRowComponent.js') diff --git a/frontend/src/components/experiments/ExperimentRowComponent.js b/frontend/src/components/experiments/ExperimentRowComponent.js index e71c6a00..8a2638a7 100644 --- a/frontend/src/components/experiments/ExperimentRowComponent.js +++ b/frontend/src/components/experiments/ExperimentRowComponent.js @@ -1,40 +1,40 @@ -import PropTypes from "prop-types"; -import React from "react"; -import { Link } from "react-router-dom"; -import Shapes from "../../shapes/index"; +import PropTypes from 'prop-types' +import React from 'react' +import { Link } from 'react-router-dom' +import Shapes from '../../shapes/index' const ExperimentRowComponent = ({ experiment, simulationId, onDelete }) => ( - - {experiment.name} - - {experiment.path.name - ? experiment.path.name - : "Path " + experiment.path.id} - - {experiment.trace.name} - {experiment.scheduler.name} - - - - -
onDelete(experiment.id)} - > - -
- - -); + + {experiment.name} + + {experiment.path.name + ? experiment.path.name + : 'Path ' + experiment.path.id} + + {experiment.trace.name} + {experiment.scheduler.name} + + + + +
onDelete(experiment.id)} + > + +
+ + +) ExperimentRowComponent.propTypes = { - experiment: Shapes.Experiment.isRequired, - simulationId: PropTypes.number.isRequired -}; + experiment: Shapes.Experiment.isRequired, + simulationId: PropTypes.string.isRequired, +} -export default ExperimentRowComponent; +export default ExperimentRowComponent -- cgit v1.2.3