@the-control-group/ui
Advanced tools
Comparing version 1.7.8 to 1.7.9
@@ -17,2 +17,3 @@ import React, { Component } from 'react'; | ||
onDismiss: PropTypes.func, | ||
onExit: PropTypes.func, | ||
enqueueModal: PropTypes.func.isRequired, | ||
@@ -53,6 +54,10 @@ dequeueModal: PropTypes.func.isRequired, | ||
setTimeout(() => this.setState({modalVisible: false}), 300); | ||
this.visibilityTimer = setTimeout(() => this.setState({modalVisible: false}, () => this.props.onExit && this.props.onExit()), 300); | ||
} | ||
} | ||
componentWillUnmount() { | ||
clearTimeout(this.visibilityTimer); | ||
} | ||
render() { | ||
@@ -59,0 +64,0 @@ const { |
{ | ||
"name": "@the-control-group/ui", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"description": "UI kit based on ReactJS for TCG projects", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75125
1548