Merge branch 'libracart' of gitlab.com:brandx/bxt-app into libracart
This commit is contained in:
commit
58ca2dff31
13 changed files with 544 additions and 11 deletions
|
|
@ -46,6 +46,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(/\/$/, "");
|
||||
|
|
@ -340,6 +341,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 />} />
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ import DataDuckIcon from "products/Bindapt/DataDuckIcon";
|
|||
import ContractsIcon from "products/CommonIcons/contractIcon";
|
||||
import JohnDeereIcon from "products/CommonIcons/johnDeereIcon";
|
||||
import CNHiIcon from "products/CommonIcons/cnhiIcon";
|
||||
import LibraCartIcon from "products/CommonIcons/libracartIcon";
|
||||
|
||||
const drawerWidth = 230;
|
||||
|
||||
|
|
@ -477,6 +478,20 @@ export default function SideNavigator(props: Props) {
|
|||
{open && <ListItemText primary="Case New Holland" />}
|
||||
</ListItemButton>
|
||||
</Tooltip>
|
||||
}
|
||||
{user.hasFeature("libra-cart") &&
|
||||
<Tooltip title="LibraCart" placement="right">
|
||||
<ListItemButton
|
||||
id="tour-libraCart"
|
||||
onClick={() => goTo("/libracart")}
|
||||
classes={getClasses("/libracart")}
|
||||
>
|
||||
<ListItemIcon>
|
||||
<LibraCartIcon />
|
||||
</ListItemIcon>
|
||||
{open && <ListItemText primary="LibraCart" />}
|
||||
</ListItemButton>
|
||||
</Tooltip>
|
||||
}
|
||||
</List>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue