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);
|
||||
|
||||
Reference in New Issue
Block a user