fix(ui): preserve inbox context and review recovery
This commit is contained in:
@@ -76,6 +76,13 @@ function LegacyBoardRedirect() {
|
||||
query.set("view", "board");
|
||||
return <Navigate replace to={{ pathname: "/jobs", search: `?${query}`, hash: location.hash }} state={location.state} />;
|
||||
}
|
||||
|
||||
function LegacyCorrespondenceReviewRedirect() {
|
||||
const location = useLocation();
|
||||
const query = new URLSearchParams(location.search);
|
||||
query.set("view", "review");
|
||||
return <Navigate replace to={{ pathname: "/correspondence", search: `?${query}`, hash: location.hash }} state={location.state} />;
|
||||
}
|
||||
type ThemeControls = { themeMode: ThemeModePref; onThemeModeChange: (value: ThemeModePref) => void };
|
||||
const ThemeControlsContext = createContext<ThemeControls | null>(null);
|
||||
type MeResponse = {
|
||||
@@ -403,7 +410,7 @@ function Shell({ jobPageSize, setJobPageSize, jobColumns, setJobColumns, themeMo
|
||||
<Route path="/companies" element={<CompaniesTable />} />
|
||||
<Route path="/offers" element={<OfferComparisonPage />} />
|
||||
<Route path="/correspondence" element={<CorrespondenceInboxPage />} />
|
||||
<Route path="/correspondence/review" element={<Navigate to="/correspondence?view=review" replace />} />
|
||||
<Route path="/correspondence/review" element={<LegacyCorrespondenceReviewRedirect />} />
|
||||
<Route path="/profile" element={<ProfilePage />} />
|
||||
<Route path="/applications/:id" element={<LegacyApplicationRedirect />} />
|
||||
<Route path="/career" element={<CareerWorkspacePage />} />
|
||||
|
||||
Reference in New Issue
Block a user