Skip to content

Commit

Permalink
Add empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Oct 21, 2024
1 parent 73f6095 commit 14a38b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/scenes/Root/Notifications/Notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ export const Notifications = () => {
onReadToggle={onReadToggle(notification)}
/>
))}
{data && data.items.length === 0 && (
<Typography align="center" color="text.secondary" my={3}>
None yet!
</Typography>
)}
{data?.hasMore && (
<ProgressButton progress={loading} onClick={() => loadMore()}>
Load more
Expand Down

0 comments on commit 14a38b0

Please sign in to comment.