refactor: remove alpha mode for telemetry
This commit is contained in:
parent
f87e5b32f9
commit
e387b70c3a
@ -35,7 +35,6 @@ export const Layout: React.FC = React.memo(() => {
|
|||||||
const showHeader = !params.has('hideHeader');
|
const showHeader = !params.has('hideHeader');
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { alphaMode } = useGlobalConfig();
|
|
||||||
|
|
||||||
const accountEl = (
|
const accountEl = (
|
||||||
<Dropdown
|
<Dropdown
|
||||||
@ -119,13 +118,11 @@ export const Layout: React.FC = React.memo(() => {
|
|||||||
label={t('Servers')}
|
label={t('Servers')}
|
||||||
onClick={() => setOpenDraw(false)}
|
onClick={() => setOpenDraw(false)}
|
||||||
/>
|
/>
|
||||||
{alphaMode && (
|
<MobileNavItem
|
||||||
<MobileNavItem
|
to="/telemetry"
|
||||||
to="/telemetry"
|
label={t('Telemetry')}
|
||||||
label={t('Telemetry')}
|
onClick={() => setOpenDraw(false)}
|
||||||
onClick={() => setOpenDraw(false)}
|
/>
|
||||||
/>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<MobileNavItem
|
<MobileNavItem
|
||||||
to="/settings"
|
to="/settings"
|
||||||
@ -157,9 +154,7 @@ export const Layout: React.FC = React.memo(() => {
|
|||||||
<NavItem to="/monitor" label={t('Monitor')} />
|
<NavItem to="/monitor" label={t('Monitor')} />
|
||||||
<NavItem to="/website" label={t('Website')} />
|
<NavItem to="/website" label={t('Website')} />
|
||||||
<NavItem to="/servers" label={t('Servers')} />
|
<NavItem to="/servers" label={t('Servers')} />
|
||||||
{alphaMode && (
|
<NavItem to="/telemetry" label={t('Telemetry')} />
|
||||||
<NavItem to="/telemetry" label={t('Telemetry')} />
|
|
||||||
)}
|
|
||||||
<NavItem to="/settings" label={t('Settings')} />
|
<NavItem to="/settings" label={t('Settings')} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user