import React, { ReactNode } from "react"; import { Input } from "antd"; import { BaseForm, FormItem, Panel } from "@mcf/components"; import { IRFormProps, IRFormState, IParams } from "@mcf/crud"; import { RFormPage } from "@mcf/crud"; import Model from '../model' interface FormProps extends IRFormProps{ reducer: Object; item:any } interface FormState extends IRFormState{ value: number; } export default class FormView< M extends Model> extends RFormPage, FormState> { componentDidMount(): void { const { actions } = this.props; const params: IParams = this.props.match.params; if (params.id) { actions.fetchItem({ id: params.id }); } } handleSubmit(values:Object): void { const { actions } = this.props; // this.state.value actions.fetchSave(values); } handleCancel(values:Object): void { this.goBack(); } render(): ReactNode { const { item } = this.props // const saveSpin = spins(actions.fetchSave); // const itemSpin = spins(actions.fetchItem); return ( //@ts-ignore ); } }