Skip to content

Commit

Permalink
Merge pull request #10853 from DestinyItemManager/search-profile
Browse files Browse the repository at this point in the history
Move search history under destiny profile
  • Loading branch information
bhollis authored Dec 18, 2024
2 parents 40b8911 + eb8f5c1 commit e9fa55f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ const WhatsNew = lazy(() => import(/* webpackChunkName: "whatsNew" */ './whats-n
const SettingsPage = lazy(
() => import(/* webpackChunkName: "settings" */ './settings/SettingsPage'),
);
const SearchHistory = lazy(
() => import(/* webpackChunkName: "searchHistory" */ './search/SearchHistory'),
);
const Debug = lazy(() => import(/* webpackChunkName: "debug" */ './debug/Debug'));

export default function App() {
Expand Down Expand Up @@ -128,14 +125,6 @@ export default function App() {
/>
) : (
<>
<Route
path="search-history"
element={
<ErrorBoundary name="searchHistory" key="searchHistory">
<SearchHistory />
</ErrorBoundary>
}
/>
<Route path="armory/*" element={<DefaultAccount />} />
<Route path=":membershipId/:destinyVersion/*" element={<Destiny />} />
<Route path="*" element={<DefaultAccount />} />
Expand Down
13 changes: 13 additions & 0 deletions src/app/shell/Destiny.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ const Activities = lazy(
const Records = lazy(() => import(/* webpackChunkName: "records" */ 'app/records/Records'));
const Loadouts = lazy(() => import(/* webpackChunkName: "loadouts" */ 'app/loadout/Loadouts'));

const SearchHistory = lazy(
() => import(/* webpackChunkName: "searchHistory" */ '../search/SearchHistory'),
);

/**
* Base view for pages that show Destiny content.
*/
Expand Down Expand Up @@ -312,6 +316,15 @@ export default function Destiny() {
}
/>
)}

<Route
path="search-history"
element={
<ErrorBoundary name="searchHistory" key="searchHistory">
<SearchHistory />
</ErrorBoundary>
}
/>
<Route path="*" element={<Navigate to="../inventory" />} />
</Routes>
</div>
Expand Down

0 comments on commit e9fa55f

Please sign in to comment.