mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
UX: Avoid Popover Footer when No Connected Sites (#20036)
Co-authored-by: Nidhi Kumari <nidhi.kumari@consensys.net>
This commit is contained in:
parent
4dcde1e216
commit
343cde9091
@ -64,7 +64,11 @@ export default class ConnectedAccounts extends PureComponent {
|
|||||||
}
|
}
|
||||||
onClose={() => history.push(mostRecentOverviewPage)}
|
onClose={() => history.push(mostRecentOverviewPage)}
|
||||||
footerClassName="connected-accounts__footer"
|
footerClassName="connected-accounts__footer"
|
||||||
footer={<ConnectedAccountsPermissions permissions={permissions} />}
|
footer={
|
||||||
|
connectedAccounts.length ? (
|
||||||
|
<ConnectedAccountsPermissions permissions={permissions} />
|
||||||
|
) : null
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<ConnectedAccountsList
|
<ConnectedAccountsList
|
||||||
accountToConnect={accountToConnect}
|
accountToConnect={accountToConnect}
|
||||||
|
Loading…
Reference in New Issue
Block a user