From 54a511424ef13e8346e9fe6fae8359eaee15ab1c Mon Sep 17 00:00:00 2001 From: constwz Date: Mon, 15 Jan 2024 14:47:19 +0800 Subject: [PATCH] perf:pop --- src/hooks/useSafeNotifications.ts | 46 +++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/hooks/useSafeNotifications.ts b/src/hooks/useSafeNotifications.ts index 2afd14b56e..bb0d9b57af 100644 --- a/src/hooks/useSafeNotifications.ts +++ b/src/hooks/useSafeNotifications.ts @@ -100,12 +100,12 @@ const useSafeNotifications = (): void => { link: isUnsupported ? CLI_LINK : { - href: { - pathname: AppRoutes.settings.setup, - query: { safe: query.safe }, - }, - title: 'Update Safe Account', + href: { + pathname: AppRoutes.settings.setup, + query: { safe: query.safe }, }, + title: 'Update Safe Account', + }, onClose: () => dismissUpdateNotification(OUTDATED_VERSION_KEY), }), @@ -132,24 +132,24 @@ const useSafeNotifications = (): void => { * Show a notification when the Safe master copy is not supported */ - useEffect(() => { - if (isValidMasterCopy(safe.implementationVersionState)) return - - const id = dispatch( - showNotification({ - variant: 'warning', - message: `This Safe Account was created with an unsupported base contract. - The web interface might not work correctly. - We recommend using the command line interface instead.`, - groupKey: 'invalid-mastercopy', - link: CLI_LINK, - }), - ) - - return () => { - dispatch(closeNotification({ id })) - } - }, [dispatch, safe.implementationVersionState]) + // useEffect(() => { + // if (isValidMasterCopy(safe.implementationVersionState)) return + + // const id = dispatch( + // showNotification({ + // variant: 'warning', + // message: `This Safe Account was created with an unsupported base contract. + // The web interface might not work correctly. + // We recommend using the command line interface instead.`, + // groupKey: 'invalid-mastercopy', + // link: CLI_LINK, + // }), + // ) + + // return () => { + // dispatch(closeNotification({ id })) + // } + // }, [dispatch, safe.implementationVersionState]) } export default useSafeNotifications