From 7e13dea3c1dccdae6b7d183f4a50a05dc5e83a40 Mon Sep 17 00:00:00 2001 From: Guus van Meerveld Date: Sun, 31 Mar 2024 21:29:19 +0200 Subject: [PATCH] trending: added texts to loading page --- src/app/trending/Trending.tsx | 11 ++++++++--- src/app/trending/page.tsx | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/trending/Trending.tsx b/src/app/trending/Trending.tsx index 34805fa..217e4e4 100644 --- a/src/app/trending/Trending.tsx +++ b/src/app/trending/Trending.tsx @@ -75,8 +75,13 @@ export const Trending: Component = ({}) => {

Trending

- {isLoading && !data && } - {error && ( + {isLoading && !data && ( + + )} + + {error !== null && (

@@ -90,7 +95,7 @@ export const Trending: Component = ({}) => {

)} - {data && error === null && ( + {data && data.length !== 0 && error === null && (
{data.map((video) => (