From 83317eb7d3a0fc80c28f9e02bf0e6b52365310e2 Mon Sep 17 00:00:00 2001
From: xaralis <filip.varecha@fragaria.cz>
Date: Sun, 20 Dec 2020 19:33:35 +0100
Subject: [PATCH] feat: note down when discussion is empty

---
 src/components/posts/PostList.jsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/components/posts/PostList.jsx b/src/components/posts/PostList.jsx
index 94e5535..12b5587 100644
--- a/src/components/posts/PostList.jsx
+++ b/src/components/posts/PostList.jsx
@@ -74,6 +74,9 @@ const PostList = ({
             onSeen={onPostSeen(item)}
           />
         ))}
+      {!items.length && (
+        <p>Nikdo zatím žádný příspěvek do rozpravy nepřidal. Budeš první?</p>
+      )}
     </div>
   );
 };
-- 
GitLab