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 22, 2024
1 parent 038720c commit 65335ca
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 @@ -126,6 +126,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 65335ca

Please sign in to comment.