Skip to content

Commit

Permalink
triv: Change Error Messages
Browse files Browse the repository at this point in the history
  • Loading branch information
r-i-c-h committed Jun 18, 2023
1 parent 75d3355 commit 9e51562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/InfiniteTweetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ interface InfiniteTweetListProps {
tweets?: Tweet[];
}

export default function InfiniteTweetList({ isLoading, isError, hasMore, fetchNewTweets, tweets }: InfiniteTweetListProps) {
export default function InfiniteTweetList({ tweets, isLoading, isError, hasMore = false, fetchNewTweets }: InfiniteTweetListProps) {
if (isLoading) { //TODO: LOADING WIDGET
return <h2>Loading..</h2>
return <h2>Inf Tweet List Loading..</h2>
}
if (isError) { //TODO: ERROR WIDGET
return <h2>ERROR</h2>
return <h2>ERROR on Inf Tweet List</h2>
}
if (tweets == null || tweets?.length === 0) {
return (
Expand Down

0 comments on commit 9e51562

Please sign in to comment.