From a8f74c5962df7df0c8dfb08376026b4235d42075 Mon Sep 17 00:00:00 2001 From: Celine Sarafa Date: Thu, 25 Jan 2024 13:30:06 +0100 Subject: [PATCH] Chore/bump notify 0 16 5 (#418) * chore: bump notify client 0.16.5 * chore: fix type annotation * chore: change undefined to null --- package.json | 2 +- .../AppNotifications/AppNotificationItem.tsx | 4 ++-- src/reducers/notifications.ts | 6 +++--- yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index bd8be5ef..22299cbb 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@sentry/react": "^7.93.0", "@walletconnect/core": "2.11.0", "@walletconnect/identity-keys": "^1.0.1", - "@walletconnect/notify-client": "^0.16.4", + "@walletconnect/notify-client": "^0.16.5", "@walletconnect/notify-message-decrypter": "^0.1.0", "@web3modal/wagmi": "3.5.6", "classnames": "^2.3.2", diff --git a/src/components/notifications/AppNotifications/AppNotificationItem.tsx b/src/components/notifications/AppNotifications/AppNotificationItem.tsx index e24b7e84..1c7b6694 100644 --- a/src/components/notifications/AppNotifications/AppNotificationItem.tsx +++ b/src/components/notifications/AppNotifications/AppNotificationItem.tsx @@ -20,7 +20,7 @@ export interface IAppNotification { message: string isRead: boolean timestamp: number - url?: string + url: string | null } interface IAppNotificationProps { notification: IAppNotification @@ -30,7 +30,7 @@ interface IAppNotificationProps { const AppNotificationItemLink: React.FC<{ children: React.ReactNode - url?: string + url: string | null className?: string }> = ({ children, url, ...props }) => { if (!url) return
{children}
diff --git a/src/reducers/notifications.ts b/src/reducers/notifications.ts index 5534a0e9..3f5dbcdc 100644 --- a/src/reducers/notifications.ts +++ b/src/reducers/notifications.ts @@ -1,7 +1,7 @@ import { NotifyClientTypes } from '@walletconnect/notify-client' export interface TopicNotificationsState { - fullNotifications: NotifyClientTypes.NotifyMessage[] + fullNotifications: NotifyClientTypes.NotifyNotification[] existingIds: Set hasMore: boolean } @@ -13,13 +13,13 @@ export interface NotificationsState { export type NotificationsActions = | { type: 'FETCH_NOTIFICATIONS' - notifications: NotifyClientTypes.NotifyMessage[] + notifications: NotifyClientTypes.NotifyNotification[] topic: string hasMore: boolean } | { type: 'UNSHIFT_NEW_NOTIFICATIONS' - notifications: NotifyClientTypes.NotifyMessage[] + notifications: NotifyClientTypes.NotifyNotification[] topic: string } diff --git a/yarn.lock b/yarn.lock index deb67a45..26dc234a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3416,10 +3416,10 @@ "@walletconnect/modal-core" "2.6.2" "@walletconnect/modal-ui" "2.6.2" -"@walletconnect/notify-client@^0.16.4": - version "0.16.4" - resolved "https://registry.yarnpkg.com/@walletconnect/notify-client/-/notify-client-0.16.4.tgz#d2f1b55867cbd9793a6dee5c1e4554ad48055af3" - integrity sha512-+Y4CRG//oYTd3fB4qRnCyGx8TFv1+b5lW0LHCD8t/X+fS3rU7A03VPRoJgJwedrmyhjWh1Leh3VnXinCtTSNHw== +"@walletconnect/notify-client@^0.16.5": + version "0.16.5" + resolved "https://registry.yarnpkg.com/@walletconnect/notify-client/-/notify-client-0.16.5.tgz#17605e6ff44a5d59e7a2cc2b515309af51a736d0" + integrity sha512-u0oJYlRmBHW6KiFLyAvpzyKq3ZDwkeK5tuYSy9HQOG+bFYxAyIJ7O0HUpCbojhq+aRFzPAP5FeNUXkhKxvPGPA== dependencies: "@noble/ed25519" "^1.7.3" "@walletconnect/cacao" "1.0.2"