Skip to content

Commit

Permalink
No notifications improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwoberts committed Oct 7, 2024
1 parent e7e5145 commit 4b8a7b1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions public/components/NotificationIndicator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import "./NotificationIndicator.scss"
import NoDataIllustration from "@fider/assets/images/undraw-empty.svg"

import React, { useEffect, useState } from "react"
import IconBell from "@fider/assets/images/heroicons-bell.svg"
Expand Down Expand Up @@ -100,9 +101,14 @@ export const NotificationIndicator = () => {
</VStack>
</>
) : (
<p className="text-display text-center my-6">
<Trans id="modal.notifications.nonew">No new notifications</Trans>
</p>
<div className="text-center pb-6">

Check failure on line 104 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Delete `··`
<p className="text-display text-center mt-6 px-4">

Check failure on line 105 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Delete `··`
<Trans id="modal.notifications.nonew">No new notifications</Trans>

Check failure on line 106 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Delete `··`
</p>

Check failure on line 107 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Replace `··················` with `················`
{recent?.length === 0 && (

Check failure on line 108 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Replace `··················{recent?.length·===·0·&&·(⏎····················<Icon·sprite={NoDataIllustration}·height="120"·className="mt-6·mb-2"·/>⏎··················)` with `················{recent?.length·===·0·&&·<Icon·sprite={NoDataIllustration}·height="120"·className="mt-6·mb-2"·/>`
<Icon sprite={NoDataIllustration} height="120" className="mt-6 mb-2" />
)}
</div>

Check failure on line 111 in public/components/NotificationIndicator.tsx

View workflow job for this annotation

GitHub Actions / test-ui

Delete `··`
)}
{recent !== undefined && recent?.length > 0 && (
<>
Expand Down

0 comments on commit 4b8a7b1

Please sign in to comment.