Show turtle mode on android

This commit is contained in:
koalasat 2024-11-12 15:57:44 +01:00
parent 016e3ee72d
commit e0f41219aa
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

View File

@ -43,27 +43,23 @@ const ChatHeader: React.FC<Props> = ({ connected, peerConnected, turtleMode, set
</Paper>
</Grid>
<Grid item>
{window.ReactNativeWebView === undefined ? (
<Grid item>
<Tooltip
enterTouchDelay={0}
placement='top'
title={t('Activate slow mode (use it when the connection is slow)')}
<Grid item>
<Tooltip
enterTouchDelay={0}
placement='top'
title={t('Activate slow mode (use it when the connection is slow)')}
>
<IconButton
size='small'
color={turtleMode ? 'primary' : 'inherit'}
onClick={() => {
setTurtleMode(!turtleMode);
}}
>
<IconButton
size='small'
color={turtleMode ? 'primary' : 'inherit'}
onClick={() => {
setTurtleMode(!turtleMode);
}}
>
<WifiTetheringError />
</IconButton>
</Tooltip>
</Grid>
) : (
<></>
)}
<WifiTetheringError />
</IconButton>
</Tooltip>
</Grid>
</Grid>
<Grid item>
<Paper