From 6315efacd6212a347877102a68f430fffa4ca4ac Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 10 Jan 2022 18:17:40 +0100
Subject: refactor(sidebar): use a component to avoid styles repetition

I also fix some overflow/sticky issues.
I have to set overflow auto only when there is no button-like
links otherwise, with translate, the button is cropped on hover.
---
 src/components/PostsList/PostsList.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/PostsList/PostsList.tsx')

diff --git a/src/components/PostsList/PostsList.tsx b/src/components/PostsList/PostsList.tsx
index 3354dd5..f401d83 100644
--- a/src/components/PostsList/PostsList.tsx
+++ b/src/components/PostsList/PostsList.tsx
@@ -63,7 +63,7 @@ const PostsList = ({
     });
   };
 
-  return <>{showYears ? getPostsListByYear() : getPostsList()}</>;
+  return <div>{showYears ? getPostsListByYear() : getPostsList()}</div>;
 };
 
 export default PostsList;
-- 
cgit v1.2.3

