sms verification: make Done component dumb

This commit is contained in:
Jannis R 2016-11-15 13:45:27 +01:00
parent 90df237ca5
commit bfcc8d33d6
No known key found for this signature in database
GPG Key ID: 0FE83946296A88A5

View File

@ -14,20 +14,12 @@
// You should have received a copy of the GNU General Public License // You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>. // along with Parity. If not, see <http://www.gnu.org/licenses/>.
import React, { Component, PropTypes } from 'react'; import React, { Component } from 'react';
import SuccessIcon from 'material-ui/svg-icons/navigation/check'; import SuccessIcon from 'material-ui/svg-icons/navigation/check';
import styles from './done.css'; import styles from './done.css';
export default class Done extends Component { export default class Done extends Component {
static propTypes = {
onSuccess: PropTypes.func.isRequired
}
componentWillMount () {
this.props.onSuccess();
}
render () { render () {
return ( return (
<div className={ styles.container }> <div className={ styles.container }>