removed old routes
This commit is contained in:
1 parent
3c29cf78ea
commit
6c2fd3837b
2 files changed
+7
-22
No files matched your search
@@ -31,6 +31,13 @@ export function TmdbPreviewPage() {
|
||||
return null;
|
||||
});
|
||||
|
||||
// Redirect immediately if entry is already in library — skip the preview step
|
||||
useEffect(() => {
|
||||
if (libraryEntry) {
|
||||
navigate(`/entry/${libraryEntry.id}`, { replace: true });
|
||||
}
|
||||
}, [libraryEntry, navigate]);
|
||||
|
||||
// Track recently viewed for command palette
|
||||
const addRecentlyViewed = useCommandPaletteStore((s) => s.addRecentlyViewed);
|
||||
useEffect(() => {
|
||||
|
||||
@@ -22,12 +22,6 @@ import {
|
||||
const HomePage = lazy(() =>
|
||||
import('@/pages/HomePage').then((m) => ({ default: m.HomePage }))
|
||||
);
|
||||
const HomePage2 = lazy(() =>
|
||||
import('@/pages/HomePage2').then((m) => ({ default: m.HomePage2 }))
|
||||
);
|
||||
const HomePage3 = lazy(() =>
|
||||
import('@/pages/HomePage3').then((m) => ({ default: m.HomePage3 }))
|
||||
);
|
||||
const DashboardPage = lazy(() =>
|
||||
import('@/pages/DashboardPage').then((m) => ({ default: m.DashboardPage }))
|
||||
);
|
||||
@@ -111,22 +105,6 @@ export const router = createRouter([
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/home2',
|
||||
element: (
|
||||
<SuspensePage fallback={<HomeSkeleton />}>
|
||||
<HomePage2 />
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/home3',
|
||||
element: (
|
||||
<SuspensePage fallback={<HomeSkeleton />}>
|
||||
<HomePage3 />
|
||||
</SuspensePage>
|
||||
),
|
||||
},
|
||||
{
|
||||
path: '/search',
|
||||
element: (
|
||||
|
||||
Reference in new issue
Block a user