From 62dac2193f53f8c5072aafd2b15ce9d0d7cc41d5 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 29 Jan 2024 12:41:43 -0800 Subject: [PATCH] Resolve CI warnings for unused components. --- .../components/header/header.component.jsx | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/client/src/components/header/header.component.jsx b/client/src/components/header/header.component.jsx index 5c0014132..091b97dc2 100644 --- a/client/src/components/header/header.component.jsx +++ b/client/src/components/header/header.component.jsx @@ -14,7 +14,7 @@ import Icon, { //GlobalOutlined, HomeFilled, ImportOutlined, - InfoCircleOutlined, + // InfoCircleOutlined, LineChartOutlined, PaperClipOutlined, PhoneOutlined, @@ -27,8 +27,11 @@ import Icon, { UserOutlined, } from "@ant-design/icons"; import { useTreatments } from "@splitsoftware/splitio-react"; -import { Layout, Menu, Switch, Tooltip } from "antd"; -import React, { useEffect, useState } from "react"; +import { + Layout, + Menu, // Switch, Tooltip +} from "antd"; +import React from "react"; //, { useEffect, useState } import { useTranslation } from "react-i18next"; import { BsKanban } from "react-icons/bs"; import { @@ -53,7 +56,7 @@ import { selectBodyshop, selectCurrentUser, } from "../../redux/user/user.selectors"; -import { handleBeta, setBeta, checkBeta } from "../../utils/handleBeta"; +//import { handleBeta, setBeta, checkBeta } from "../../utils/handleBeta"; const mapStateToProps = createStructuredSelector({ currentUser: selectCurrentUser, @@ -104,20 +107,20 @@ function Header({ {}, bodyshop && bodyshop.imexshopid ); - const [betaSwitch, setBetaSwitch] = useState(false); + //const [betaSwitch, setBetaSwitch] = useState(false); const { t } = useTranslation(); - useEffect(() => { - const isBeta = checkBeta(); - setBetaSwitch(isBeta); - }, []); + // useEffect(() => { + // const isBeta = checkBeta(); + // setBetaSwitch(isBeta); + // }, []); - const betaSwitchChange = (checked) => { - setBeta(checked); - setBetaSwitch(checked); - handleBeta(); - }; + // const betaSwitchChange = (checked) => { + // setBeta(checked); + // setBetaSwitch(checked); + // handleBeta(); + // }; return (