mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 10:30:04 +01:00
ad5e16cfa7
A new `SiteIcon` component has been created for showing icons representing web3 sites. The icon has a border and background, and it has a fallback in case no icon is given. This new component accepts a `size` prop that controls the size of the icon. The old `IconWithFallback` component had a hard-coded size in the SCSS styles for the icon, which was being overridden in a few places. It was difficult to customize, and overly complicated. The old `IconWithFallback` component is still used, but it's now simpler. It only handles rendering the underlying `img` for the icon, or the fallback letter if no image is given. A separate `IconBorder` component has been created for the border and white background used. It's solely used by `SiteIcon` for now, but I intend to use it elsewhere as well, where this same pattern of a white background is embedded. |
||
---|---|---|
.. | ||
add-token | ||
asset | ||
confirm-add-suggested-token | ||
confirm-add-token | ||
confirm-approve | ||
confirm-decrypt-message | ||
confirm-deploy-contract | ||
confirm-encryption-public-key | ||
confirm-send-ether | ||
confirm-send-token | ||
confirm-token-transaction-base | ||
confirm-transaction | ||
confirm-transaction-base | ||
confirm-transaction-switch | ||
connected-accounts | ||
connected-sites | ||
create-account | ||
error | ||
first-time-flow | ||
home | ||
keychains | ||
lock | ||
mobile-sync | ||
permissions-connect | ||
routes | ||
send | ||
settings | ||
unlock-page | ||
index.js | ||
index.scss |