Resolve CI warnings for unused components.
This commit is contained in:
@@ -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 (
|
||||
<Layout.Header>
|
||||
|
||||
Reference in New Issue
Block a user