From a64ad8f7321cf718b3283377308efb0044373ca3 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Tue, 19 Jan 2021 17:07:17 -0800
Subject: [PATCH] Updated header.
---
.../components/header/header.component.jsx | 536 +++++++++---------
.../src/components/header/header.styles.scss | 9 -
2 files changed, 272 insertions(+), 273 deletions(-)
delete mode 100644 client/src/components/header/header.styles.scss
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.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;
-}