// Copyright (c) 2015 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import React from 'react'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router/es6'; import logoImage from 'images/logo.png'; export default class ClaimController extends React.Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { this.setState({ email: this.props.location.query.email, newType: this.props.location.query.new_type, oldType: this.props.location.query.old_type }); } render() { return (
{React.cloneElement(this.props.children, { currentType: this.state.oldType, newType: this.state.newType, email: this.state.email })}
); } } ClaimController.defaultProps = { }; ClaimController.propTypes = { location: React.PropTypes.object.isRequired, children: React.PropTypes.node };