summaryrefslogtreecommitdiff
path: root/src/components/sidebars/topology/rack/EmptySlotComponent.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-07 11:38:42 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:58 +0200
commite9909159dc5db91eda12437e18c1474cae848af7 (patch)
treef34e0ca56b666f6a4ab1022e58a6dcd84b779725 /src/components/sidebars/topology/rack/EmptySlotComponent.js
parentd5a92d3006561fd631279b68b23a1f8075b28bb8 (diff)
Implement first machine slot listing
Diffstat (limited to 'src/components/sidebars/topology/rack/EmptySlotComponent.js')
-rw-r--r--src/components/sidebars/topology/rack/EmptySlotComponent.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/components/sidebars/topology/rack/EmptySlotComponent.js b/src/components/sidebars/topology/rack/EmptySlotComponent.js
new file mode 100644
index 00000000..5234ee63
--- /dev/null
+++ b/src/components/sidebars/topology/rack/EmptySlotComponent.js
@@ -0,0 +1,16 @@
+import React from "react";
+import FontAwesome from "react-fontawesome";
+
+const EmptySlotComponent = ({position, onAdd}) => (
+ <li className="list-group-item justify-content-between">
+ <span className="badge badge-default badge-info">
+ {position}
+ </span>
+ Add machine
+ <button className="btn btn-secondary" onClick={onAdd}>
+ <FontAwesome name="plus"/>
+ </button>
+ </li>
+);
+
+export default EmptySlotComponent;