From b3a3265ec033b93d1c9bf4a71683dfc64b59f7a2 Mon Sep 17 00:00:00 2001 From: VaibhavArora314 Date: Mon, 27 May 2024 21:08:32 +0530 Subject: [PATCH] loader while loading posts and error formatting --- frontend/src/components/Loader.tsx | 2 +- frontend/src/pages/Posts.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/Loader.tsx b/frontend/src/components/Loader.tsx index 67579b79..a4c17565 100644 --- a/frontend/src/components/Loader.tsx +++ b/frontend/src/components/Loader.tsx @@ -2,7 +2,7 @@ const Loader = () => { return (
Loading...
; + return ; } if (error) { - return
{error}
; + return
{error}
; } return (