summaryrefslogtreecommitdiff
path: root/frontend/src/components/experiments/ExperimentRowComponent.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <info@gandreadis.com>2020-07-10 10:21:46 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:01 +0200
commit8aa174e70c01631ae4e00a6d208966fcd77cf972 (patch)
tree35ec6527e8d7a0b4093e18c8cb501c293a18b5eb /frontend/src/components/experiments/ExperimentRowComponent.js
parent607e8c72d85bf79dcd9bf28df96b239e2764bc30 (diff)
Add implementation of portfolio and scenario UI structure
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