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:
parent
34c4122013
commit
9a8bb81358
@ -34,6 +34,7 @@ export default function AddNetworkModal() {
|
||||
</Box>
|
||||
<NetworksForm
|
||||
addNewNetwork
|
||||
restrictHeight
|
||||
networksToRender={[]}
|
||||
cancelCallback={closeCallback}
|
||||
submitCallback={closeCallback}
|
||||
|
@ -234,6 +234,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__restrict-height {
|
||||
max-height: 578px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
&__add-network-form-footer {
|
||||
display: flex;
|
||||
flex-flow: row;
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user