From 4a633a0f83a3a7cf18feead821fcdff2453de926 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Wed, 13 Jan 2021 17:06:43 +0800
Subject: ...

---
 .../app/views/timeline-common/TimelineDateItem.tsx    | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 FrontEnd/src/app/views/timeline-common/TimelineDateItem.tsx

(limited to 'FrontEnd/src/app/views/timeline-common/TimelineDateItem.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelineDateItem.tsx b/FrontEnd/src/app/views/timeline-common/TimelineDateItem.tsx
new file mode 100644
index 00000000..bcc1530f
--- /dev/null
+++ b/FrontEnd/src/app/views/timeline-common/TimelineDateItem.tsx
@@ -0,0 +1,19 @@
+import React from "react";
+import TimelineLine from "./TimelineLine";
+
+export interface TimelineDateItemProps {
+  date: Date;
+}
+
+const TimelineDateItem: React.FC<TimelineDateItemProps> = ({ date }) => {
+  return (
+    <div className="timeline-date-item">
+      <TimelineLine center={null} />
+      <div className="timeline-date-item-badge">
+        {date.toLocaleDateString()}
+      </div>
+    </div>
+  );
+};
+
+export default TimelineDateItem;
-- 
cgit v1.2.3

