Skip to content

Commit

Permalink
Add autohide to the removeal message
Browse files Browse the repository at this point in the history
  • Loading branch information
darkwing committed Jan 25, 2023
1 parent 76e8306 commit d74e51e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/pages/home/home.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export default class Home extends PureComponent {
} = this.props;

const onAutoHide = () => setNewCollectibleAddedMessage('');
const autoHideDelay = 5 * SECOND;

return (
<MultipleNotifications>
Expand Down Expand Up @@ -320,7 +321,7 @@ export default class Home extends PureComponent {
<ActionableMessage
type="success"
className="home__new-network-notification"
autoHideTime={5 * SECOND}
autoHideTime={autoHideDelay}
onAutoHide={onAutoHide}
message={
<Box display={DISPLAY.INLINE_FLEX}>
Expand All @@ -345,6 +346,8 @@ export default class Home extends PureComponent {
<ActionableMessage
type="danger"
className="home__new-network-notification"
autoHideTime={autoHideDelay}
onAutoHide={onAutoHide}
message={
<Box display={DISPLAY.INLINE_FLEX}>
<i className="fa fa-check-circle home__new-nft-notification-icon" />
Expand Down

0 comments on commit d74e51e

Please sign in to comment.