From 6c8ac2b7a540f0786daa7673190e5d6923ea8176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Sun, 15 Nov 2020 02:59:33 +0100 Subject: [PATCH] feat(frontend): adopt card-style for recent listens --- frontend/src/components/RecentListens.tsx | 26 ++++++++++++----------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/RecentListens.tsx b/frontend/src/components/RecentListens.tsx index 5086443..6e4dfe1 100644 --- a/frontend/src/components/RecentListens.tsx +++ b/frontend/src/components/RecentListens.tsx @@ -43,7 +43,7 @@ export const RecentListens: React.FC = () => { -
+
{isLoading && (
Loading Listens @@ -54,15 +54,17 @@ export const RecentListens: React.FC = () => {

Could not find any listens!

)} - {recentListens.length > 0 && ( -
- {recentListens.map((listen) => ( - - ))} -
- )} +
+ {recentListens.length > 0 && ( +
+ {recentListens.map((listen) => ( + + ))} +
+ )} +
+
-
); @@ -80,7 +82,7 @@ const Pagination: React.FC<{ const isLastPage = page === totalPages; return ( -
+