summaryrefslogtreecommitdiff
path: root/src/components/app/sidebars/topology/machine/UnitListComponent.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/app/sidebars/topology/machine/UnitListComponent.js')
-rw-r--r--src/components/app/sidebars/topology/machine/UnitListComponent.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/components/app/sidebars/topology/machine/UnitListComponent.js b/src/components/app/sidebars/topology/machine/UnitListComponent.js
deleted file mode 100644
index 38df806b..00000000
--- a/src/components/app/sidebars/topology/machine/UnitListComponent.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import React from "react";
-import UnitContainer from "../../../../../containers/app/sidebars/topology/machine/UnitContainer";
-
-const UnitListComponent = ({ unitType, unitIds, inSimulation }) => (
- <ul className="list-group mt-1">
- {unitIds.length !== 0 ? (
- unitIds.map((unitId, index) => (
- <UnitContainer
- unitType={unitType}
- unitId={unitId}
- index={index}
- key={index}
- />
- ))
- ) : (
- <div className="alert alert-info">
- {inSimulation ? (
- <strong>No units of this type in this machine</strong>
- ) : (
- <span>
- <strong>No units...</strong> Add some with the menu above!
- </span>
- )}
- </div>
- )}
- </ul>
-);
-
-export default UnitListComponent;