mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
wrap all page routes in LibraryContainer
This commit is contained in:
@@ -4,6 +4,7 @@ import { useLocation, useParams } from 'react-router';
|
||||
import { SearchContent } from '/@/renderer/features/search/components/search-content';
|
||||
import { SearchHeader } from '/@/renderer/features/search/components/search-header';
|
||||
import { AnimatedPage } from '/@/renderer/features/shared/components/animated-page';
|
||||
import { LibraryContainer } from '/@/renderer/features/shared/components/library-container';
|
||||
|
||||
const SearchRoute = () => {
|
||||
const { state: locationState } = useLocation();
|
||||
@@ -13,8 +14,10 @@ const SearchRoute = () => {
|
||||
|
||||
return (
|
||||
<AnimatedPage key={`search-${navigationId}`}>
|
||||
<SearchHeader navigationId={navigationId} />
|
||||
<SearchContent key={`page-${itemType}`} />
|
||||
<LibraryContainer>
|
||||
<SearchHeader navigationId={navigationId} />
|
||||
<SearchContent key={`page-${itemType}`} />
|
||||
</LibraryContainer>
|
||||
</AnimatedPage>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user