summaryrefslogtreecommitdiff
path: root/src/components/timeline/TimelineLabelsComponent.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-18 16:52:11 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:06:04 +0200
commitf8f617c97fcb2df3dbefc9527d974151e367cb60 (patch)
treef6405aa54f73b66220f36e3a388725f71d023cfb /src/components/timeline/TimelineLabelsComponent.js
parent9f86ae6de969baa625e3341c796c64f63b5153ce (diff)
Implement basic experiment mode with timeline
The timeline doesn't trigger anything yet, but the visual element is in place and connected.
Diffstat (limited to 'src/components/timeline/TimelineLabelsComponent.js')
-rw-r--r--src/components/timeline/TimelineLabelsComponent.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/timeline/TimelineLabelsComponent.js b/src/components/timeline/TimelineLabelsComponent.js
new file mode 100644
index 00000000..1f6053a1
--- /dev/null
+++ b/src/components/timeline/TimelineLabelsComponent.js
@@ -0,0 +1,11 @@
+import React from "react";
+import {convertSecondsToFormattedTime} from "../../util/date-time";
+
+const TimelineLabelsComponent = ({currentTick, lastSimulatedTick}) => (
+ <div className="timeline-labels">
+ <div className="start-time-label">{convertSecondsToFormattedTime(currentTick)}</div>
+ <div className="end-time-label">{convertSecondsToFormattedTime(lastSimulatedTick)}</div>
+ </div>
+);
+
+export default TimelineLabelsComponent;