From bf77bbd4ee12345a5082409a02486419c4f85de7 Mon Sep 17 00:00:00 2001
From: Patrick Fic <>
Date: Mon, 3 May 2021 11:21:25 -0700
Subject: [PATCH] IO-922 Added icons.
---
.../global-search/global-search.component.jsx | 4 +-
.../components/header/header.component.jsx | 74 +++++++++++--------
.../tech-sider/tech-sider.component.jsx | 35 +++++----
3 files changed, 69 insertions(+), 44 deletions(-)
diff --git a/client/src/components/global-search/global-search.component.jsx b/client/src/components/global-search/global-search.component.jsx
index b1c460e53..132224730 100644
--- a/client/src/components/global-search/global-search.component.jsx
+++ b/client/src/components/global-search/global-search.component.jsx
@@ -166,12 +166,12 @@ export default function GlobalSearch() {
return (
-
+
);
}
diff --git a/client/src/components/header/header.component.jsx b/client/src/components/header/header.component.jsx
index 201e611b1..33dc0f069 100644
--- a/client/src/components/header/header.component.jsx
+++ b/client/src/components/header/header.component.jsx
@@ -1,14 +1,21 @@
import Icon, {
+ BankFilled,
+ BarChartOutlined,
CarFilled,
ClockCircleFilled,
DollarCircleFilled,
+ ExportOutlined,
+ FieldTimeOutlined,
FileAddFilled,
FileFilled,
GlobalOutlined,
HomeFilled,
ImportOutlined,
LineChartOutlined,
+ PaperClipOutlined,
+ PhoneOutlined,
ScheduleOutlined,
+ SettingOutlined,
TeamOutlined,
ToolFilled,
UnorderedListOutlined,
@@ -24,6 +31,9 @@ import {
FaCreditCard,
FaFileInvoiceDollar,
} from "react-icons/fa";
+import { GiPayMoney, GiPlayerTime, GiSettingsKnobs } from "react-icons/gi";
+import { IoBusinessOutline } from "react-icons/io5";
+import { RiSurveyLine } from "react-icons/ri";
import { connect } from "react-redux";
import { Link } from "react-router-dom";
import { createStructuredSelector } from "reselect";
@@ -35,6 +45,7 @@ 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";
+
const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser,
recentItems: selectRecentItems,
@@ -67,12 +78,12 @@ function Header({
const { t } = useTranslation();
return (
-
+
}
title={t("menus.header.accounting")}
>
-
+ }
+ >
{t("menus.header.bills")}
}
onClick={() => {
setBillEnterContext({
actions: {},
@@ -167,11 +182,10 @@ function Header({
});
}}
>
-
{t("menus.header.enterbills")}
-
+ }>
{t("menus.header.allpayments")}
-
+ }>
{t("menus.header.timetickets")}
}
onClick={() => {
setTimeTicketContext({
actions: {},
@@ -206,7 +221,10 @@ function Header({
-
+ }
+ >
{t("menus.header.accounting-receivables")}
@@ -229,27 +247,22 @@ function Header({
-
-
+ }>
+ {t("menus.header.phonebook")}
+
+ }>
+
+ {t("menus.header.temporarydocs")}
+
+
+ }>
+ }>
{t("menus.header.shop_config")}
-
-
- {t("menus.header.temporarydocs")}
-
-
-
- {t("menus.header.phonebook")}
-
- {
- //
- //
- // {t("menus.header.shop_templates")}
- //
- //
- }
+
}
onClick={() => {
setReportCenterContext({
actions: {},
@@ -259,12 +272,15 @@ function Header({
>
{t("menus.header.reportcenter")}
-
+ }
+ >
{t("menus.header.shop_vendors")}
-
+ }>
{t("menus.header.shop_csi")}
@@ -318,10 +334,10 @@ function Header({
))}
-
-
-
+
+
+
);
}
diff --git a/client/src/components/tech-sider/tech-sider.component.jsx b/client/src/components/tech-sider/tech-sider.component.jsx
index 00816f035..1bd3bcdf8 100644
--- a/client/src/components/tech-sider/tech-sider.component.jsx
+++ b/client/src/components/tech-sider/tech-sider.component.jsx
@@ -1,4 +1,4 @@
-import Icon, { SearchOutlined } from "@ant-design/icons";
+import Icon, { SearchOutlined, ScheduleOutlined } from "@ant-design/icons";
import { Layout, Menu } from "antd";
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
@@ -10,6 +10,7 @@ import { Link } from "react-router-dom";
import { createStructuredSelector } from "reselect";
import { techLogout } from "../../redux/tech/tech.actions";
import { selectTechnician } from "../../redux/tech/tech.selectors";
+import { BsKanban } from "react-icons/bs";
const { Sider } = Layout;
@@ -29,39 +30,47 @@ export function TechSider({ technician, techLogout }) {
return (
-