unknown icon form plugin without a logo

pull/4317/head
lianahus 12 months ago committed by Aniket
parent d0a909e079
commit f0a98f59d7
  1. BIN
      apps/remix-ide/src/assets/img/unknownPluginIcon.webp
  2. 6
      libs/remix-ui/permission-handler/src/lib/permission-dialog.tsx

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

@ -19,10 +19,12 @@ const PermissionHandlerDialog = (props: PermissionHandlerProps) => {
}
const imgFrom = () => {
return <img className={`${theme === 'dark' ? 'invert' : ''}`} alt="" id="permissionModalImagesFrom" src={from.icon} />
if (!from.icon || from.icon === '') from.icon = "/assets/img/unknownPluginIcon.webp"
return <img className={`opacity(0.5);`} alt="" id="permissionModalImagesFrom" src={from.icon} />
}
const imgTo = () => {
return <img className={`${theme === 'dark' ? 'invert' : ''}`} alt="" id="permissionModalImagesTo" src={to.icon} />
if (!to.icon || to.icon === '') to.icon = "/assets/img/unknownPluginIcon.webp"
return <img className={`opacity(0.5);`} alt="" id="permissionModalImagesTo" src={to.icon} />
}
const pluginsImages = () => {
return (

Loading…
Cancel
Save