diff --git a/src/components/menu/BottomNav.tsx b/src/components/menu/BottomNav.tsx index 28af7090..7cbba3cf 100644 --- a/src/components/menu/BottomNav.tsx +++ b/src/components/menu/BottomNav.tsx @@ -32,6 +32,7 @@ import { Tooltip } from '../generic/Tooltip'; // } export const BottomNav = (): JSX.Element => { + const [showVersionInfo, setShowVersionInfo] = React.useState(false); const dispatch = useAppDispatch(); const meshtasticState = useAppSelector((state) => state.meshtastic); const appState = useAppSelector((state) => state.app); @@ -81,11 +82,14 @@ export const BottomNav = (): JSX.Element => {
{primaryChannelSettings?.uplinkEnabled && - primaryChannelSettings?.downlinkEnabled ? ( + primaryChannelSettings?.downlinkEnabled && + !meshtasticState.radio.preferences.mqttDisabled ? ( - ) : primaryChannelSettings?.uplinkEnabled ? ( + ) : primaryChannelSettings?.uplinkEnabled && + !meshtasticState.radio.preferences.mqttDisabled ? ( - ) : primaryChannelSettings?.downlinkEnabled ? ( + ) : primaryChannelSettings?.downlinkEnabled && + !meshtasticState.radio.preferences.mqttDisabled ? ( ) : ( @@ -96,15 +100,15 @@ export const BottomNav = (): JSX.Element => {