sms verification: make Done component dumb
This commit is contained in:
		
							parent
							
								
									90df237ca5
								
							
						
					
					
						commit
						bfcc8d33d6
					
				@ -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 }>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user