feature/IO-3255-simplified-parts-management - Adjust routes / Deps

This commit is contained in:
Dave Richer
2025-07-29 14:37:51 -04:00
parent bb2b67cece
commit 952feeb685
6 changed files with 386 additions and 460 deletions

View File

@@ -53,15 +53,14 @@ export function App({ bodyshop, checkUserSession, currentUser, online, setOnline
if (!navigator.onLine) {
setOnline(false);
}
checkUserSession();
}, [checkUserSession, setOnline]);
useEffect(() => {
const pathname = window.location.pathname;
const isParts = pathname.startsWith("/parts/");
const isParts = pathname.startsWith("/parts/") && bodyshop?.external_shop_id;
setIsPartsEntry(isParts);
}, [setIsPartsEntry]);
}, [setIsPartsEntry, bodyshop?.external_shop_id]);
//const b = Grid.useBreakpoint();
// console.log("Breakpoints:", b);

View File

@@ -139,6 +139,7 @@ export const QUERY_BODYSHOP = gql`
tt_enforce_hours_for_tech_console
md_tasks_presets
use_paint_scale_data
external_shop_id
intellipay_config
md_ro_guard
notification_followers