import React from 'react'; import { Button, Input } from 'antd'; import { connect, DispatchProp } from 'dva'; import { formatMessage } from 'umi-plugin-locale'; import { CheckModelState } from './model'; const RegisterPage: React.FC = ({ password, submitting, dispatch, }) => { return ( <> dispatch({ type: 'check/onUpdatePassword', payload: e.target.value })} size="large" type="password" /> ); } export default connect( ({ check } : any) => ({ ...check }) )(RegisterPage) as any;