From 8e011b65f346386abe26afcce737dd59c5865988 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 14 Mar 2021 12:08:32 +0300 Subject: feat: add Waybills --- src/containers/Service/ServiceContext.tsx | 1 + src/containers/Service/ServiceForm.tsx | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/containers/Service') diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx index 2602936..8f23d9d 100644 --- a/src/containers/Service/ServiceContext.tsx +++ b/src/containers/Service/ServiceContext.tsx @@ -6,6 +6,7 @@ export interface ServiceParams { nameSingular: string; tableFields: any[]; Form: React.FC; + default: Record; } const ServiceContext = React.createContext({ diff --git a/src/containers/Service/ServiceForm.tsx b/src/containers/Service/ServiceForm.tsx index 273f5bd..62e4521 100644 --- a/src/containers/Service/ServiceForm.tsx +++ b/src/containers/Service/ServiceForm.tsx @@ -1,6 +1,7 @@ import React, { useContext } from 'react'; import { useParams, useHistory } from 'react-router-dom'; import { Formik } from 'formik'; +import _ from 'lodash'; import Page, { Action } from '../Page'; import hooks from '../../hooks/useAPIClient'; import { post, patch } from '../../requests'; @@ -32,7 +33,7 @@ const ServiceForm: React.FC = () => { {(!id || item) && ( -- cgit v1.2.3