1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Allow user to scroll network form in onboarding modal (#17291)

This commit is contained in:
Dan J Miller 2023-01-19 10:44:47 -03:30 committed by GitHub
parent 34c4122013
commit 9a8bb81358
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export default function AddNetworkModal() {
</Box>
<NetworksForm
addNewNetwork
restrictHeight
networksToRender={[]}
cancelCallback={closeCallback}
submitCallback={closeCallback}

View File

@ -234,6 +234,11 @@
}
}
&__restrict-height {
max-height: 578px;
overflow-y: auto;
}
&__add-network-form-footer {
display: flex;
flex-flow: row;

View File

@ -78,6 +78,7 @@ const isValidWhenAppended = (url) => {
const NetworksForm = ({
addNewNetwork,
restrictHeight,
isCurrentRpcTarget,
networksToRender,
selectedNetwork,
@ -588,6 +589,7 @@ const NetworksForm = ({
className={classnames({
'networks-tab__network-form': !addNewNetwork,
'networks-tab__add-network-form': addNewNetwork,
'networks-tab__restrict-height': restrictHeight,
})}
>
{addNewNetwork ? (
@ -708,6 +710,7 @@ NetworksForm.propTypes = {
selectedNetwork: PropTypes.object,
cancelCallback: PropTypes.func,
submitCallback: PropTypes.func,
restrictHeight: PropTypes.bool,
};
NetworksForm.defaultProps = {