Added job lookup framework to tech console. BOD-95 BOD-96
This commit is contained in:
@@ -27,39 +27,43 @@ export function TechSider({ technician, techLogout }) {
|
||||
|
||||
return (
|
||||
<Sider collapsible collapsed={collapsed} onCollapse={onCollapse}>
|
||||
<Menu theme='dark' defaultSelectedKeys={["1"]} mode='inline'>
|
||||
<Menu theme="dark" defaultSelectedKeys={["1"]} mode="inline">
|
||||
<Menu.Item
|
||||
key='1'
|
||||
key="1"
|
||||
disabled={!!technician}
|
||||
icon={<Icon component={FiLogIn} />}>
|
||||
icon={<Icon component={FiLogIn} />}
|
||||
>
|
||||
<Link to={`/tech/login`}>{t("menus.tech.login")}</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key='2' disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Link to={`/tech/lookup`}>{t("menus.tech.joblookup")}</Link>
|
||||
<Menu.Item key="2" disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Link to={`/tech/joblookup`}>{t("menus.tech.joblookup")}</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item
|
||||
key='3'
|
||||
key="3"
|
||||
disabled={!!!technician}
|
||||
icon={<Icon component={MdTimer} />}>
|
||||
icon={<Icon component={MdTimer} />}
|
||||
>
|
||||
<Link to={`/tech/clockin`}>{t("menus.tech.clockin")}</Link>
|
||||
</Menu.Item>{" "}
|
||||
</Menu.Item>
|
||||
<Menu.Item
|
||||
key='4'
|
||||
key="4"
|
||||
disabled={!!!technician}
|
||||
icon={<Icon component={MdTimerOff} />}>
|
||||
icon={<Icon component={MdTimerOff} />}
|
||||
>
|
||||
<Link to={`/tech/clockout`}>{t("menus.tech.clockout")}</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key='5' disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Menu.Item key="5" disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Link to={`/tech/list`}>{t("menus.tech.productionlist")}</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item key='6' disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Menu.Item key="6" disabled={!!!technician} icon={<SearchOutlined />}>
|
||||
<Link to={`/tech/board`}> {t("menus.tech.productionboard")}</Link>
|
||||
</Menu.Item>
|
||||
<Menu.Item
|
||||
key='7'
|
||||
key="7"
|
||||
disabled={!!!technician}
|
||||
onClick={() => techLogout()}
|
||||
icon={<Icon component={FiLogOut} />}>
|
||||
icon={<Icon component={FiLogOut} />}
|
||||
>
|
||||
{t("menus.tech.logout")}
|
||||
</Menu.Item>
|
||||
</Menu>
|
||||
|
||||
Reference in New Issue
Block a user