import PropTypes from 'prop-types' import ObjectInfo from '../../common/ObjectInfo' import NewObjectForm from '../../common/NewObjectForm' import WizardView from '../../common/WizardView' const NewVendor = ({ onOk, defaultValues }) => { return ( {({ handleSubmit, submitLoading, objectData, formValid }) => { const steps = [ { title: 'Required', key: 'required', content: ( ) }, { title: 'Optional', key: 'optional', content: ( ) }, { title: 'Summary', key: 'summary', content: ( ) } ] return ( { handleSubmit() onOk() }} /> ) }} ) } NewVendor.propTypes = { onOk: PropTypes.func.isRequired, reset: PropTypes.bool, defaultValues: PropTypes.object } export default NewVendor