From d6689d0ad8040c41113b28e65a7d3f6b3c36b2c2 Mon Sep 17 00:00:00 2001 From: Anirban-1490 Date: Fri, 22 Jul 2022 11:27:00 +0530 Subject: [PATCH] renamed variable for tweets loading state --- src/common/home/Home.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/home/Home.jsx b/src/common/home/Home.jsx index bff43f788..5bfdb8b63 100644 --- a/src/common/home/Home.jsx +++ b/src/common/home/Home.jsx @@ -52,13 +52,13 @@ const Home = () => { //* set the state for loading - const [isLoading,setLoading] = useState(true) + const [isTweetsLoading,setTweetsLoading] = useState(true) function tweetLoadHandler (){ //* as soon as tweets loads on DOM disable the loading spinner - setLoading(false) + setTweetsLoading(false) } @@ -172,7 +172,7 @@ const Home = () => { { - (isLoading) ? :"" + (isTweetsLoading) ? :"" }
{