feature/IO-3255-simplified-parts-management - Adjust routes / Deps
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user