diff --git a/packages/apps-config/src/ui/logos/empty.svg b/packages/apps-config/src/ui/logos/empty.svg index 554e3dfe9b..69a0543357 100644 --- a/packages/apps-config/src/ui/logos/empty.svg +++ b/packages/apps-config/src/ui/logos/empty.svg @@ -1,7 +1,5 @@ - - + + diff --git a/packages/apps/src/Menu/index.tsx b/packages/apps/src/Menu/index.tsx index 47eecfe77d..65a48e44f6 100644 --- a/packages/apps/src/Menu/index.tsx +++ b/packages/apps/src/Menu/index.tsx @@ -168,22 +168,13 @@ export default React.memo(styled(Menu)` &.menuBg, .menuBg { - &:after { - background: #fff; - bottom: 0; - content: ' '; - left: 0; - position: absolute; - right: 0; - top: 0; - z-index: -2; - } + background: white; &:before { bottom: 0; content: ' '; left: 0; - opacity: 0.125; + opacity: 0.1; position: absolute; right: 0; top: 0; @@ -192,9 +183,7 @@ export default React.memo(styled(Menu)` } &.isLoading.menuBg { - &:after { - background: #eee; - } + background: #eee; &:before { filter: grayscale(1); diff --git a/packages/react-components/src/ChainImg.tsx b/packages/react-components/src/ChainImg.tsx index 68954893fd..2dcf7eedc5 100644 --- a/packages/react-components/src/ChainImg.tsx +++ b/packages/react-components/src/ChainImg.tsx @@ -19,14 +19,16 @@ function sanitize (value?: string): string { function ChainImg ({ className = '', logo, onClick }: Props): React.ReactElement { const { systemChain, systemName } = useApi(); - const img = useMemo((): string => { - return (namedLogos[logo || ''] || chainLogos[sanitize(systemChain)] || nodeLogos[sanitize(systemName)] || emptyLogo) as string; + const [isEmpty, img] = useMemo((): [boolean, string] => { + const found: unknown = namedLogos[logo || ''] || chainLogos[sanitize(systemChain)] || nodeLogos[sanitize(systemName)]; + + return [!found || logo === 'empty', (found || emptyLogo) as string]; }, [logo, systemChain, systemName]); return ( chain logo