Commit f6a7c856 authored by aballerr's avatar aballerr Committed by GitHub

fix: overflow and empty popup (#4973)

* fixing a popup bug and wallet overflow
parent a21bbfd5
......@@ -81,11 +81,11 @@ export default function PopupItem({
popupContent = <FailedNetworkSwitchPopup chainId={content.failedSwitchNetwork} />
}
return (
return popupContent ? (
<Popup>
<StyledClose color={theme.deprecated_text2} onClick={removeThisPopup} />
{popupContent}
{removeAfterMs !== null ? <AnimatedFader style={faderStyle} /> : null}
</Popup>
)
) : null
}
......@@ -6,6 +6,7 @@ const Menu = styled.div`
height: 100%;
font-size: 16px;
overflow: auto;
max-height: 450px;
// Firefox scrollbar styling
scrollbar-width: thin;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment