1
0
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:
David Walsh 2023-07-17 13:12:45 -05:00 committed by GitHub
parent 4dcde1e216
commit 343cde9091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}