From 2326a48cab5fc21b0b803d7b3ac0de06d80670b9 Mon Sep 17 00:00:00 2001 From: tozhou Date: Mon, 18 Nov 2024 12:09:36 +0000 Subject: [PATCH] NCL-8833 Remove default component for LegacyUrlRedirector --- src/AppLayout.tsx | 2 +- src/components/OldUrlRedirector/LegacyUrlRedirector.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/AppLayout.tsx b/src/AppLayout.tsx index e7b3a7eb..6b73d1e1 100644 --- a/src/AppLayout.tsx +++ b/src/AppLayout.tsx @@ -40,7 +40,7 @@ import { StorageKeys, useStorage } from 'hooks/useStorage'; import { DropdownLinkItem } from 'components/Dropdown/DropdownLinkItem'; import { ExperimentalContent } from 'components/ExperimentalContent/ExperimentalContent'; import { ExperimentalContentMarker } from 'components/ExperimentalContent/ExperimentalContentMarker'; -import LegacyUrlRedirector from 'components/OldUrlRedirector/LegacyUrlRedirector'; +import { LegacyUrlRedirector } from 'components/OldUrlRedirector/LegacyUrlRedirector'; import { ProtectedComponent } from 'components/ProtectedContent/ProtectedComponent'; import { OldUIAnnouncement } from 'components/TopBar/OldUIAnnouncement'; import { TopBarAnnouncement } from 'components/TopBar/TopBarAnnouncement'; diff --git a/src/components/OldUrlRedirector/LegacyUrlRedirector.tsx b/src/components/OldUrlRedirector/LegacyUrlRedirector.tsx index f40dd384..8d6d343c 100644 --- a/src/components/OldUrlRedirector/LegacyUrlRedirector.tsx +++ b/src/components/OldUrlRedirector/LegacyUrlRedirector.tsx @@ -1,7 +1,7 @@ import { useEffect } from 'react'; import { useNavigate } from 'react-router-dom'; -const LegacyUrlRedirector = () => { +export const LegacyUrlRedirector = () => { const navigate = useNavigate(); useEffect(() => { @@ -28,5 +28,3 @@ const LegacyUrlRedirector = () => { return null; }; - -export default LegacyUrlRedirector;