summaryrefslogtreecommitdiff
path: root/frontend/src/components/experiments/ExperimentRowComponent.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-10 10:24:31 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:01 +0200
commit3b4e27320c479bd6ef48998f448ed070e8bd7511 (patch)
tree35ec6527e8d7a0b4093e18c8cb501c293a18b5eb /frontend/src/components/experiments/ExperimentRowComponent.js
parentb30906bbe0d5f343b337a80de1b4b70ebf288331 (diff)
parent8aa174e70c01631ae4e00a6d208966fcd77cf972 (diff)
Merge pull request #8 from atlarge-research/feature/portfolios-scenarios-frontend
Portfolios and scenarios on the frontend
Diffstat (limited to 'frontend/src/components/experiments/ExperimentRowComponent.js')
-rw-r--r--frontend/src/components/experiments/ExperimentRowComponent.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/frontend/src/components/experiments/ExperimentRowComponent.js b/frontend/src/components/experiments/ExperimentRowComponent.js
deleted file mode 100644
index c6ae1ba4..00000000
--- a/frontend/src/components/experiments/ExperimentRowComponent.js
+++ /dev/null
@@ -1,36 +0,0 @@
-import PropTypes from 'prop-types'
-import React from 'react'
-import { Link } from 'react-router-dom'
-import Shapes from '../../shapes/index'
-
-const ExperimentRowComponent = ({ experiment, projectId, onDelete }) => (
- <tr>
- <td className="pt-3">{experiment.name}</td>
- <td className="pt-3">{experiment.topology.name}</td>
- <td className="pt-3">{experiment.trace.name}</td>
- <td className="pt-3">{experiment.scheduler.name}</td>
- <td className="text-right">
- <Link
- to={'/projects/' + projectId + '/experiments/' + experiment._id}
- className="btn btn-outline-primary btn-sm mr-2"
- title="Open this experiment"
- >
- <span className="fa fa-play"/>
- </Link>
- <div
- className="btn btn-outline-danger btn-sm"
- title="Delete this experiment"
- onClick={() => onDelete(experiment._id)}
- >
- <span className="fa fa-trash"/>
- </div>
- </td>
- </tr>
-)
-
-ExperimentRowComponent.propTypes = {
- experiment: Shapes.Experiment.isRequired,
- projectId: PropTypes.string.isRequired,
-}
-
-export default ExperimentRowComponent