@@ -6,6 +6,7 @@ import { useNavigate } from 'react-router-dom'
66import SpannerSVG from '@/assets/Spanner.svg'
77import Badge from '@/components/general/Badge'
88import Text from '@/components/general/Text'
9+ import SettingsContext from '@/contexts/SettingsContext/context'
910import W3iContext from '@/contexts/W3iContext/context'
1011import { logError } from '@/utils/error'
1112import { showErrorMessageToast , showSuccessMessageToast } from '@/utils/toasts'
@@ -37,6 +38,7 @@ const AppCard: React.FC<AppCardProps> = ({
3738 const nav = useNavigate ( )
3839 const ref = useRef < HTMLDivElement > ( null )
3940 const { notifyClientProxy, userPubkey } = useContext ( W3iContext )
41+ const { isDevModeEnabled } = useContext ( SettingsContext )
4042 const { activeSubscriptions } = useContext ( W3iContext )
4143
4244 const host = new URL ( url ) . host
@@ -112,7 +114,7 @@ const AppCard: React.FC<AppCardProps> = ({
112114 < div className = "AppCard__header" >
113115 < div className = "AppCard__header__logo" >
114116 < img src = { logo || '/fallback.svg' } alt = { `${ name } logo` } />
115- { ! isVerified && ! isComingSoon ? (
117+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? (
116118 < img src = { SpannerSVG } className = "AppCard__header__logo__dev-icon" alt = "Dev mode icon" />
117119 ) : null }
118120 </ div >
@@ -132,7 +134,7 @@ const AppCard: React.FC<AppCardProps> = ({
132134 < div className = "AppCard__body" >
133135 < div className = "AppCard__body__title" >
134136 < Text variant = "large-600" > { name } </ Text >
135- { ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
137+ { isDevModeEnabled && ! isVerified && ! isComingSoon ? < Badge > DEV</ Badge > : null }
136138 </ div >
137139 < Text className = "AppCard__body__subtitle" variant = "tiny-500" >
138140 { host }
0 commit comments