import { Button, Result, Descriptions, Statistic } from 'antd'; import React from 'react'; import { Dispatch } from 'redux'; import { connect } from 'dva'; import { StateType } from '../../model'; import styles from './index.less'; interface Step3Props { data?: StateType['step']; dispatch?: Dispatch; } const Step3: React.FC = props => { const { data, dispatch } = props; if (!data) { return null; } const { payAccount, receiverAccount, receiverName, amount } = data; const onFinish = () => { if (dispatch) { dispatch({ type: 'BLOCK_NAME_CAMEL_CASE/saveCurrentStep', payload: 'info', }); } }; const information = (
{payAccount} {receiverAccount} {receiverName}
); const extra = ( <> ); return ( {information} ); }; export default connect(({ BLOCK_NAME_CAMEL_CASE }: { BLOCK_NAME_CAMEL_CASE: StateType }) => ({ data: BLOCK_NAME_CAMEL_CASE.step, }))(Step3);