@@ -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
@@ -113,7 +115,7 @@ const AppCard: React.FC<AppCardProps> = ({
113
115
< div className = "AppCard__header" >
114
116
< div className = "AppCard__header__logo" >
115
117
< img src = { logo || '/fallback.svg' } alt = { `${ name } logo` } />
116
- { ! isVerified && ! isComingSoon ? (
118
+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? (
117
119
< img src = { SpannerSVG } className = "AppCard__header__logo__dev-icon" alt = "Dev mode icon" />
118
120
) : null }
119
121
</ div >
@@ -133,7 +135,7 @@ const AppCard: React.FC<AppCardProps> = ({
133
135
< div className = "AppCard__body" >
134
136
< div className = "AppCard__body__title" >
135
137
< Text variant = "large-600" > { name } </ Text >
136
- { ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
138
+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
137
139
</ div >
138
140
< Text className = "AppCard__body__subtitle" variant = "tiny-500" >
139
141
{ host }
0 commit comments