diff --git a/src/components/RelayStatusIndicator.tsx b/src/components/RelayStatusIndicator.tsx index ddc8e13c..4e27efae 100644 --- a/src/components/RelayStatusIndicator.tsx +++ b/src/components/RelayStatusIndicator.tsx @@ -8,9 +8,13 @@ import { useIsMobile } from '../hooks/useMediaQuery' interface RelayStatusIndicatorProps { relayPool: RelayPool | null + showOnMobile?: boolean // Control visibility based on scroll } -export const RelayStatusIndicator: React.FC = ({ relayPool }) => { +export const RelayStatusIndicator: React.FC = ({ + relayPool, + showOnMobile = true +}) => { // Poll frequently for responsive offline indicator (5s instead of default 20s) const relayStatuses = useRelayStatus({ relayPool, pollingInterval: 5000 }) const [isConnecting, setIsConnecting] = useState(true) @@ -70,7 +74,7 @@ export const RelayStatusIndicator: React.FC = ({ rela return (
= (props) => { highlightColor={props.settings.highlightColorMine || '#ffff00'} /> )} - + {props.toastMessage && (