From 328bc917eb678c9fd5138e760af153959e0ea5c9 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Sun, 10 Oct 2021 21:15:01 +0200 Subject: [PATCH] Remove notification test Signed-off-by: Tilman Vatteroth --- src/components/editor-page/editor-page.tsx | 3 -- .../editor-page/use-notification-test.tsx | 35 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 src/components/editor-page/use-notification-test.tsx diff --git a/src/components/editor-page/editor-page.tsx b/src/components/editor-page/editor-page.tsx index 8b4394eb7..4485acd75 100644 --- a/src/components/editor-page/editor-page.tsx +++ b/src/components/editor-page/editor-page.tsx @@ -24,7 +24,6 @@ import { DualScrollState, ScrollState } from './synced-scroll/scroll-props' import { RendererType } from '../render-page/window-post-message-communicator/rendering-message' import { useEditorModeFromUrl } from './hooks/useEditorModeFromUrl' import { UiNotifications } from '../notifications/ui-notifications' -import { useNotificationTest } from './use-notification-test' import { useUpdateLocalHistoryEntry } from './hooks/useUpdateLocalHistoryEntry' import { useApplicationState } from '../../hooks/common/use-application-state' import { EditorDocumentRenderer } from './editor-document-renderer/editor-document-renderer' @@ -98,8 +97,6 @@ export const EditorPage: React.FC = () => { log.debug('Make editor scroll source') }, []) - useNotificationTest() - const leftPane = useMemo( () => ( { - useEffect(() => { - if (window.localStorage.getItem(localStorageKey)) { - return - } - log.debug('Dispatched test notification') - void dispatchUiNotification('notificationTest.title', 'notificationTest.content', { - icon: 'info-circle', - buttons: [ - { - label: "Don't show again", - onClick: () => { - window.localStorage.setItem(localStorageKey, '1') - } - } - ] - }) - }, []) -}