diff --git a/client/src/components/header/header.component.jsx b/client/src/components/header/header.component.jsx index f1f65bc68..347a77eb9 100644 --- a/client/src/components/header/header.component.jsx +++ b/client/src/components/header/header.component.jsx @@ -10,9 +10,9 @@ import Icon, { LineChartOutlined, ScheduleOutlined, TeamOutlined, + ToolFilled, UnorderedListOutlined, UserOutlined, - ToolFilled, } from "@ant-design/icons"; import { Avatar, Menu } from "antd"; import React from "react"; @@ -35,8 +35,6 @@ import { setModalContext } from "../../redux/modals/modals.actions"; import { signOutStart } from "../../redux/user/user.actions"; import { selectCurrentUser } from "../../redux/user/user.selectors"; import GlobalSearch from "../global-search/global-search.component"; -import "./header.styles.scss"; - const mapStateToProps = createStructuredSelector({ currentUser: selectCurrentUser, recentItems: selectRecentItems, @@ -66,282 +64,292 @@ function Header({ const { t } = useTranslation(); return ( - - - - - {t("menus.header.home")} - - - - - - {t("menus.header.schedule")} - - - - - {t("menus.header.jobs")} - - } +
+ - - - {t("menus.header.activejobs")} - - - - {t("menus.header.parts-queue")} + + + + {t("menus.header.home")} - - - {t("menus.header.availablejobs")} + + + + {t("menus.header.schedule")} - - - - {t("menus.header.alljobs")} - - - - - - - {t("menus.header.productionlist")} - - - - - - {t("menus.header.productionboard")} - - - - - - - {t("menus.header.scoreboard")} - - - - - {t("menus.header.customers")} - - } - > - - - - {t("menus.header.owners")} - - - - - - {t("menus.header.vehicles")} - - - - - - {t("menus.header.courtesycars")} - - } - > - - - - {t("menus.header.courtesycars-all")} - - - - - - {t("menus.header.courtesycars-contracts")} - - - - - - {t("menus.header.courtesycars-newcontract")} - - - - - - {t("menus.header.accounting")} - - } - > - - {t("menus.header.bills")} - - { - setBillEnterContext({ - actions: {}, - context: {}, - }); - }} - > - - {t("menus.header.enterbills")} - - - - {t("menus.header.allpayments")} - - { - setPaymentContext({ - actions: {}, - context: null, - }); - }} - > - - {t("menus.header.enterpayment")} - - - - - {t("menus.header.timetickets")} - - { - setTimeTicketContext({ - actions: {}, - context: {}, - }); - }} - > - {t("menus.header.entertimeticket")} - - - - - - - {t("menus.header.accounting-receivables")} - - - - - {t("menus.header.accounting-payables")} - - - - - {t("menus.header.accounting-payments")} - - - - - - - {t("menus.header.shop_config")} - - - - - {t("menus.header.shop_templates")} - - - - - - {t("menus.header.shop_vendors")} - - - - {t("menus.header.shop_csi")} - - - - - - }> - {recentItems.map((i, idx) => ( - - {i.label} - - ))} - - - {currentUser.photoURL ? ( - - ) : ( - } - /> - )} - - {currentUser.displayName || - currentUser.email || - t("general.labels.unknown")} -
- } - > - signOutStart()}> - {t("user.actions.signout")} - - - {t("menus.header.shiftclock")} - - - {t("menus.currentuser.profile")} - - - {t("menus.currentuser.languageselector")} + + {t("menus.header.jobs")} } > - - {t("general.languages.english")} + + + {t("menus.header.activejobs")} - - {t("general.languages.french")} + + + {t("menus.header.parts-queue")} + - - {t("general.languages.spanish")} + + + {t("menus.header.availablejobs")} + + + + + + {t("menus.header.alljobs")} + + + + + + + {t("menus.header.productionlist")} + + + + + + {t("menus.header.productionboard")} + + + + + + + {t("menus.header.scoreboard")} -
-
+ + + {t("menus.header.customers")} + + } + > + + + + {t("menus.header.owners")} + + + + + + {t("menus.header.vehicles")} + + + + + + {t("menus.header.courtesycars")} + + } + > + + + + {t("menus.header.courtesycars-all")} + + + + + + {t("menus.header.courtesycars-contracts")} + + + + + + {t("menus.header.courtesycars-newcontract")} + + + + + + {t("menus.header.accounting")} + + } + > + + {t("menus.header.bills")} + + { + setBillEnterContext({ + actions: {}, + context: {}, + }); + }} + > + + {t("menus.header.enterbills")} + + + + {t("menus.header.allpayments")} + + { + setPaymentContext({ + actions: {}, + context: null, + }); + }} + > + + {t("menus.header.enterpayment")} + + + + + + {t("menus.header.timetickets")} + + + { + setTimeTicketContext({ + actions: {}, + context: {}, + }); + }} + > + {t("menus.header.entertimeticket")} + + + + + + + {t("menus.header.accounting-receivables")} + + + + + {t("menus.header.accounting-payables")} + + + + + {t("menus.header.accounting-payments")} + + + + + + + {t("menus.header.shop_config")} + + + + + {t("menus.header.shop_templates")} + + + + + + {t("menus.header.shop_vendors")} + + + + {t("menus.header.shop_csi")} + + + + + + + {currentUser.photoURL ? ( + + ) : ( + } + /> + )} + + {currentUser.displayName || + currentUser.email || + t("general.labels.unknown")} + + } + > + signOutStart()}> + {t("user.actions.signout")} + + + {t("menus.header.shiftclock")} + + + {t("menus.currentuser.profile")} + + + + {t("menus.currentuser.languageselector")} + + } + > + + {t("general.languages.english")} + + + {t("general.languages.french")} + + + {t("general.languages.spanish")} + + + + }> + {recentItems.map((i, idx) => ( + + {i.label} + + ))} + + + ); } diff --git a/client/src/components/header/header.styles.scss b/client/src/components/header/header.styles.scss deleted file mode 100644 index ed2aed346..000000000 --- a/client/src/components/header/header.styles.scss +++ /dev/null @@ -1,9 +0,0 @@ -.header-shop-logo { - background-size: cover; - max-width: 100%; - max-height: 3.5rem; -} -.header-main-menu { - //width: 95vw; - //float: left; -}