moved all of the libracart suff from the old frontend into the new new, also added libracart as an option alongside jd and cnh to skip the auth0 callback when redirected back to us from there

This commit is contained in:
csawatzky 2025-07-17 13:42:11 -06:00
parent 67cafbe2ed
commit a0a54bee2a
14 changed files with 528 additions and 12 deletions

View file

@ -45,6 +45,7 @@ const Contracts = lazy(() => import("pages/Contracts"));
const Contract = lazy(() => import("pages/Contract"));
const JohnDeere = lazy(() => import("pages/JohnDeere"));
const CNHi = lazy(() => import("pages/CNHi"));
const LibraCart = lazy(() => import("pages/LibraCart"));
export const appendToUrl = (appendage: number | string) => {
const basePath = location.pathname.replace(/\/$/, "");
@ -337,6 +338,9 @@ export default function Router() {
{user.hasFeature("cnhi") &&
<Route path="cnhi" element={<CNHi />} />
}
{user.hasFeature("libra-cart") &&
<Route path="libracart" element={<LibraCart />} />
}
{/* Map routes */}
<Route path="visualFarm" element={<FieldMap />} />
<Route path="aviationMap" element={<AviationMap />} />