Skip to content

Commit

Permalink
renamed variable for tweets loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirban-1490 committed Jul 22, 2022
1 parent fa29019 commit d6689d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}


Expand Down Expand Up @@ -172,7 +172,7 @@ const Home = () => {
</h3>

{
(isLoading) ? <Spinner/> :""
(isTweetsLoading) ? <Spinner/> :""
}
<div className="tweets-container active" >
{
Expand Down

0 comments on commit d6689d0

Please sign in to comment.