Skip to content

Commit

Permalink
NCL-8833 Remove default component for LegacyUrlRedirector
Browse files Browse the repository at this point in the history
  • Loading branch information
DnsZhou committed Nov 18, 2024
1 parent 95f0cd4 commit 2326a48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 1 addition & 3 deletions src/components/OldUrlRedirector/LegacyUrlRedirector.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useEffect } from 'react';
import { useNavigate } from 'react-router-dom';

const LegacyUrlRedirector = () => {
export const LegacyUrlRedirector = () => {
const navigate = useNavigate();

useEffect(() => {
Expand All @@ -28,5 +28,3 @@ const LegacyUrlRedirector = () => {

return null;
};

export default LegacyUrlRedirector;

0 comments on commit 2326a48

Please sign in to comment.