From f5724eb2c7db9d38624bb1bbff30a6eb631e5ed8 Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Tue, 6 Jul 2021 00:54:24 +0800
Subject: feat: Fix #625.

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

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

diff --git a/FrontEnd/src/views/timeline-common/TimelinePostEditNoLogin.tsx b/FrontEnd/src/views/timeline-common/TimelinePostEditNoLogin.tsx
new file mode 100644
index 00000000..82834e95
--- /dev/null
+++ b/FrontEnd/src/views/timeline-common/TimelinePostEditNoLogin.tsx
@@ -0,0 +1,18 @@
+import React from "react";
+import { Trans } from "react-i18next";
+import { Link } from "react-router-dom";
+
+import TimelinePostEditCard from "./TimelinePostEditCard";
+
+export default function TimelinePostEditNoLogin(): React.ReactElement | null {
+  return (
+    <TimelinePostEditCard>
+      <div className="mt-3 mb-4">
+        <Trans
+          i18nKey="timeline.postNoLogin"
+          components={{ l: <Link to="/login" /> }}
+        />
+      </div>
+    </TimelinePostEditCard>
+  );
+}
-- 
cgit v1.2.3

