From 34c37dd486b01d6bb93588dccb9b6ca037a66514 Mon Sep 17 00:00:00 2001 From: diwash007 Date: Wed, 20 Mar 2024 22:28:27 +0545 Subject: [PATCH] feat: display loader while notifications are loading --- .../src/components/notifications/notification.component.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/frontend/src/components/notifications/notification.component.tsx b/apps/frontend/src/components/notifications/notification.component.tsx index 7b076798..0c509ce5 100644 --- a/apps/frontend/src/components/notifications/notification.component.tsx +++ b/apps/frontend/src/components/notifications/notification.component.tsx @@ -6,6 +6,7 @@ import { FC, useCallback, useState } from 'react'; import clsx from 'clsx'; import { useClickAway } from '@uidotdev/usehooks'; import interClass from '@gitroom/react/helpers/inter.font'; +import ReactLoading from 'react-loading'; function replaceLinks(text: string) { const urlRegex = @@ -47,6 +48,11 @@ export const NotificationOpenComponent = () => {
+ {isLoading && ( +
+ +
+ )} {!isLoading && !data.notifications.length && (
No notifications