@@ -164,6 +164,7 @@ export default class Home extends PureComponent {
164
164
showOutdatedBrowserWarning : PropTypes . bool . isRequired ,
165
165
setOutdatedBrowserWarningLastShown : PropTypes . func . isRequired ,
166
166
newNetworkAddedName : PropTypes . string ,
167
+ editedNetwork : PropTypes . string ,
167
168
// This prop is used in the `shouldCloseNotificationPopup` function
168
169
// eslint-disable-next-line react/no-unused-prop-types
169
170
isSigningQRHardwareTransaction : PropTypes . bool . isRequired ,
@@ -177,6 +178,7 @@ export default class Home extends PureComponent {
177
178
setNewTokensImported : PropTypes . func . isRequired ,
178
179
setNewTokensImportedError : PropTypes . func . isRequired ,
179
180
clearNewNetworkAdded : PropTypes . func ,
181
+ clearEditedNetwork : PropTypes . func ,
180
182
setActiveNetwork : PropTypes . func ,
181
183
// eslint-disable-next-line react/no-unused-prop-types
182
184
setTokenAutodetectModal : PropTypes . func ,
@@ -450,6 +452,7 @@ export default class Home extends PureComponent {
450
452
newNftAddedMessage,
451
453
setNewNftAddedMessage,
452
454
newNetworkAddedName,
455
+ editedNetwork,
453
456
removeNftMessage,
454
457
setRemoveNftMessage,
455
458
newTokensImported,
@@ -458,6 +461,7 @@ export default class Home extends PureComponent {
458
461
setNewTokensImportedError,
459
462
newNetworkAddedConfigurationId,
460
463
clearNewNetworkAdded,
464
+ clearEditedNetwork,
461
465
setActiveNetwork,
462
466
} = this . props ;
463
467
@@ -572,6 +576,28 @@ export default class Home extends PureComponent {
572
576
}
573
577
/>
574
578
) : null }
579
+ { console . log ( 'IM HERE ***********' , editedNetwork ) }
580
+ { editedNetwork ? (
581
+ < ActionableMessage
582
+ type = "success"
583
+ className = "home__new-network-notification"
584
+ message = {
585
+ < Box display = { Display . InlineFlex } >
586
+ < i className = "fa fa-check-circle home__new-network-notification-icon" />
587
+ < Text variant = { TextVariant . bodySm } as = "h6" >
588
+ { t ( 'newNetworkEdited' , [ editedNetwork ] ) }
589
+ </ Text >
590
+ < ButtonIcon
591
+ iconName = { IconName . Close }
592
+ size = { ButtonIconSize . Sm }
593
+ ariaLabel = { t ( 'close' ) }
594
+ onClick = { ( ) => clearEditedNetwork ( ) }
595
+ className = "home__new-network-notification-close"
596
+ />
597
+ </ Box >
598
+ }
599
+ />
600
+ ) : null }
575
601
{ newTokensImported ? (
576
602
< ActionableMessage
577
603
type = "success"
0 commit comments