Comment out beta switch while Rome Beta has not yet started.
This commit is contained in:
@@ -13,7 +13,8 @@ import Icon, {
|
||||
FileFilled,
|
||||
//GlobalOutlined,
|
||||
HomeFilled,
|
||||
ImportOutlined, InfoCircleOutlined,
|
||||
ImportOutlined,
|
||||
InfoCircleOutlined,
|
||||
LineChartOutlined,
|
||||
PaperClipOutlined,
|
||||
PhoneOutlined,
|
||||
@@ -26,8 +27,8 @@ 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, { useEffect, useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { BsKanban } from "react-icons/bs";
|
||||
import {
|
||||
@@ -52,7 +53,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,
|
||||
@@ -116,7 +117,7 @@ function Header({
|
||||
setBeta(checked);
|
||||
setBetaSwitch(checked);
|
||||
handleBeta();
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<Layout.Header>
|
||||
@@ -443,17 +444,18 @@ function Header({
|
||||
</Menu.Item>
|
||||
))}
|
||||
</Menu.SubMenu>
|
||||
<Menu.Item style={{marginLeft: 'auto'}} key="profile">
|
||||
<Tooltip title="A more modern ImEX Online is ready for you to try! You can switch back at any time.">
|
||||
<InfoCircleOutlined/>
|
||||
<span style={{marginRight: 8}}>Try the new ImEX Online</span>
|
||||
<Switch
|
||||
checked={betaSwitch}
|
||||
onChange={betaSwitchChange}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Menu.Item>
|
||||
|
||||
{
|
||||
// <Menu.Item style={{marginLeft: 'auto'}} key="profile">
|
||||
// <Tooltip title="A more modern ImEX Online is ready for you to try! You can switch back at any time.">
|
||||
// <InfoCircleOutlined/>
|
||||
// <span style={{marginRight: 8}}>Try the new ImEX Online</span>
|
||||
// <Switch
|
||||
// checked={betaSwitch}
|
||||
// onChange={betaSwitchChange}
|
||||
// />
|
||||
// </Tooltip>
|
||||
// </Menu.Item>
|
||||
}
|
||||
</Menu>
|
||||
</Layout.Header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user