File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
apps/remix-ide/src/assets/img
libs/remix-ui/permission-handler/src/lib Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,12 @@ const PermissionHandlerDialog = (props: PermissionHandlerProps) => {
1919 }
2020
2121 const imgFrom = ( ) => {
22- return < img className = { `${ theme === 'dark' ? 'invert' : '' } ` } alt = "" id = "permissionModalImagesFrom" src = { from . icon } />
22+ if ( ! from . icon || from . icon === '' ) from . icon = "/assets/img/unknownPluginIcon.webp"
23+ return < img className = { `opacity(0.5);` } alt = "" id = "permissionModalImagesFrom" src = { from . icon } />
2324 }
2425 const imgTo = ( ) => {
25- return < img className = { `${ theme === 'dark' ? 'invert' : '' } ` } alt = "" id = "permissionModalImagesTo" src = { to . icon } />
26+ if ( ! to . icon || to . icon === '' ) to . icon = "/assets/img/unknownPluginIcon.webp"
27+ return < img className = { `opacity(0.5);` } alt = "" id = "permissionModalImagesTo" src = { to . icon } />
2628 }
2729 const pluginsImages = ( ) => {
2830 return (
You can’t perform that action at this time.
0 commit comments