Comment out beta switch while Rome Beta has not yet started.

This commit is contained in:
Patrick Fic
2024-01-29 12:25:04 -08:00
parent ae56e27e5f
commit 69b4b76501

View File

@@ -13,7 +13,8 @@ import Icon, {
FileFilled, FileFilled,
//GlobalOutlined, //GlobalOutlined,
HomeFilled, HomeFilled,
ImportOutlined, InfoCircleOutlined, ImportOutlined,
InfoCircleOutlined,
LineChartOutlined, LineChartOutlined,
PaperClipOutlined, PaperClipOutlined,
PhoneOutlined, PhoneOutlined,
@@ -26,8 +27,8 @@ import Icon, {
UserOutlined, UserOutlined,
} from "@ant-design/icons"; } from "@ant-design/icons";
import { useTreatments } from "@splitsoftware/splitio-react"; import { useTreatments } from "@splitsoftware/splitio-react";
import {Layout, Menu, Switch, Tooltip} from "antd"; import { Layout, Menu, Switch, Tooltip } from "antd";
import React, {useEffect, useState} from "react"; import React, { useEffect, useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { BsKanban } from "react-icons/bs"; import { BsKanban } from "react-icons/bs";
import { import {
@@ -52,7 +53,7 @@ import {
selectBodyshop, selectBodyshop,
selectCurrentUser, selectCurrentUser,
} from "../../redux/user/user.selectors"; } from "../../redux/user/user.selectors";
import {handleBeta, setBeta, checkBeta} from "../../utils/handleBeta"; import { handleBeta, setBeta, checkBeta } from "../../utils/handleBeta";
const mapStateToProps = createStructuredSelector({ const mapStateToProps = createStructuredSelector({
currentUser: selectCurrentUser, currentUser: selectCurrentUser,
@@ -116,7 +117,7 @@ function Header({
setBeta(checked); setBeta(checked);
setBetaSwitch(checked); setBetaSwitch(checked);
handleBeta(); handleBeta();
} };
return ( return (
<Layout.Header> <Layout.Header>
@@ -443,17 +444,18 @@ function Header({
</Menu.Item> </Menu.Item>
))} ))}
</Menu.SubMenu> </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."> // <Menu.Item style={{marginLeft: 'auto'}} key="profile">
<InfoCircleOutlined/> // <Tooltip title="A more modern ImEX Online is ready for you to try! You can switch back at any time.">
<span style={{marginRight: 8}}>Try the new ImEX Online</span> // <InfoCircleOutlined/>
<Switch // <span style={{marginRight: 8}}>Try the new ImEX Online</span>
checked={betaSwitch} // <Switch
onChange={betaSwitchChange} // checked={betaSwitch}
/> // onChange={betaSwitchChange}
</Tooltip> // />
</Menu.Item> // </Tooltip>
// </Menu.Item>
}
</Menu> </Menu>
</Layout.Header> </Layout.Header>
); );