From 1b8e3d218c7e3743b1b4bf1431155d448e8834b9 Mon Sep 17 00:00:00 2001 From: MarconLP <13001502+MarconLP@users.noreply.github.com> Date: Wed, 12 Apr 2023 18:46:12 +0200 Subject: [PATCH] add text to show if no videos exist --- src/pages/videos.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/pages/videos.tsx b/src/pages/videos.tsx index adecd3a..042c71a 100644 --- a/src/pages/videos.tsx +++ b/src/pages/videos.tsx @@ -33,7 +33,7 @@ const VideoList: NextPage = () => {
- {videos && !isLoading ? ( + {videos && videos.map(({ title, id, createdAt }) => ( { createdAt={createdAt} key={id} /> - )) - ) : ( + ))} + + {isLoading ? ( <>
@@ -73,7 +74,13 @@ const VideoList: NextPage = () => {
- )} + ) : null} + + {videos && videos?.length <= 0 ? ( +
+ You do not have any recordings. +
+ ) : null}