commonNewListBill.js
640 Bytes
/**
* Created by mar105 on 2019-03-05.
*/
import React from 'react';
import { connect } from 'umi';
import CommonNewBillComponent from '../../components/Common/CommonNewListBill';
function CommonNewTabBill({ dispatch, app, content }) {
function removePane(changePanes, currentPane) {
dispatch({ type: 'app/removePane', payload: { changePanes, currentPane } });
}
const commonNewBillProps = {
app,
content,
dispatch,
onRemovePane: removePane,
};
return (
<CommonNewBillComponent {...commonNewBillProps} />
);
}
export default connect(({ app, content }) =>
({ app, content }))(CommonNewTabBill);