Skip to content

Commit e772f55

Browse files
LianaHusAniket-Engg
authored andcommitted
updated the tooltip for disabled state
do not show wifi icon for remix web
1 parent 776da83 commit e772f55

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

apps/remix-ide/src/app/tabs/locales/en/terminal.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"terminal.listen": "listen on all transactions",
3+
"terminal.listenVM": "Listen on all transactions is disabled for VM environment",
34
"terminal.listenTitle": "If checked Remix will listen on all transactions mined in the current environment and not only transactions created by you",
45
"terminal.search": "Search with transaction hash or address",
56
"terminal.used": "used",

libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { Chevron } from './components/Chevron'
88
import { IconRecord } from './types'
99
import { onLineContext } from '@remix-ui/app'
1010
import { CustomTooltip } from '@remix-ui/helper'
11+
import {Registry} from '@remix-project/remix-lib'
12+
1113
export interface RemixUiVerticalIconsPanelProps {
1214
verticalIconsPlugin: Plugin
1315
icons: IconRecord[]
@@ -109,29 +111,31 @@ const RemixUiVerticalIconsPanel = ({ verticalIconsPlugin, icons }: RemixUiVertic
109111
/>
110112
</div>
111113
<div className="remixui_default-icons-container border-0">
112-
{scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (
114+
{ scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (
113115
<Chevron divElementRef={scrollableRef} direction="down" cssRule={'fa fa-chevron-down remixui_icon-chevron my-0'} />
114-
) : null}
116+
) : null }
115117
<IconList
116118
theme={theme}
117119
icons={icons.filter((p) => p.profile.name === 'settings' || p.profile.name === 'pluginManager')}
118120
verticalIconsPlugin={verticalIconsPlugin}
119121
itemContextAction={itemContextAction}
120122
/>
121-
{online ?
122-
<CustomTooltip
123-
placement="top"
124-
tooltipText={'You are online'}
125-
>
126-
<i className="fa-solid fa-wifi text-success p-2"></i>
127-
</CustomTooltip>
128-
:
129-
<CustomTooltip
130-
placement="top"
131-
tooltipText={'You are offline'}
132-
>
133-
<i className="fa-solid fa-wifi-exclamation text-danger p-2"></i>
134-
</CustomTooltip>}
123+
{ Registry.getInstance().get('platform').api.isDesktop() ? (
124+
online ? (
125+
<CustomTooltip
126+
placement="top"
127+
tooltipText={'You are online'}
128+
>
129+
<i className="fa-solid fa-wifi text-success p-2"></i>
130+
</CustomTooltip>)
131+
:
132+
(<CustomTooltip
133+
placement="top"
134+
tooltipText={'You are offline'}
135+
>
136+
<i className="fa-solid fa-wifi-exclamation text-danger p-2"></i>
137+
</CustomTooltip>)
138+
) : null }
135139
</div>
136140
</div>
137141
</div>

0 commit comments

Comments
 (0)