import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass' import { FormattedMessage, injectIntl } from 'react-intl' import { Bar, Form, Header, PasswordInput } from 'components/UI' import messages from './messages' class Password extends React.Component { static propTypes = { wizardApi: PropTypes.object, wizardState: PropTypes.object, setPassword: PropTypes.func.isRequired } static defaultProps = { wizardApi: {}, wizardState: {} } handleSubmit = async values => { const { setPassword } = this.props await setPassword(values.password) } setFormApi = formApi => { this.formApi = formApi } render() { const { wizardApi, wizardState, setPassword, intl, ...rest } = this.props const { getApi, onChange, preSubmit, onSubmit, onSubmitFailure } = wizardApi const { currentItem } = wizardState return (
) } } export default injectIntl(Password)