@@ -6,6 +6,7 @@ import { useNavigate } from 'react-router-dom'
6
6
import SpannerSVG from '@/assets/Spanner.svg'
7
7
import Badge from '@/components/general/Badge'
8
8
import Text from '@/components/general/Text'
9
+ import SettingsContext from '@/contexts/SettingsContext/context'
9
10
import W3iContext from '@/contexts/W3iContext/context'
10
11
import { logError } from '@/utils/error'
11
12
import { showErrorMessageToast , showSuccessMessageToast } from '@/utils/toasts'
@@ -37,6 +38,7 @@ const AppCard: React.FC<AppCardProps> = ({
37
38
const nav = useNavigate ( )
38
39
const ref = useRef < HTMLDivElement > ( null )
39
40
const { notifyClientProxy, userPubkey } = useContext ( W3iContext )
41
+ const { isDevModeEnabled } = useContext ( SettingsContext )
40
42
const { activeSubscriptions } = useContext ( W3iContext )
41
43
42
44
const host = new URL ( url ) . host
@@ -112,7 +114,7 @@ const AppCard: React.FC<AppCardProps> = ({
112
114
< div className = "AppCard__header" >
113
115
< div className = "AppCard__header__logo" >
114
116
< img src = { logo || '/fallback.svg' } alt = { `${ name } logo` } />
115
- { ! isVerified && ! isComingSoon ? (
117
+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? (
116
118
< img src = { SpannerSVG } className = "AppCard__header__logo__dev-icon" alt = "Dev mode icon" />
117
119
) : null }
118
120
</ div >
@@ -132,7 +134,7 @@ const AppCard: React.FC<AppCardProps> = ({
132
134
< div className = "AppCard__body" >
133
135
< div className = "AppCard__body__title" >
134
136
< Text variant = "large-600" > { name } </ Text >
135
- { ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
137
+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
136
138
</ div >
137
139
< Text className = "AppCard__body__subtitle" variant = "tiny-500" >
138
140
{ host }
0 commit comments