From 0ddde9acc170a42e0a2564c57e8ba9421bc90df4 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 17 Mar 2021 03:56:06 +0300 Subject: feat: mutate item after changing status --- src/containers/Service/ServiceContext.tsx | 1 + src/containers/Service/ServiceItem.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/containers/Service') diff --git a/src/containers/Service/ServiceContext.tsx b/src/containers/Service/ServiceContext.tsx index b4200a0..f9e1605 100644 --- a/src/containers/Service/ServiceContext.tsx +++ b/src/containers/Service/ServiceContext.tsx @@ -3,6 +3,7 @@ import { FormikProps } from 'formik'; export interface PanelProps { item: any; + mutate: (item: any) => void; } export interface ServiceParams { diff --git a/src/containers/Service/ServiceItem.tsx b/src/containers/Service/ServiceItem.tsx index bd449f9..585f609 100644 --- a/src/containers/Service/ServiceItem.tsx +++ b/src/containers/Service/ServiceItem.tsx @@ -51,7 +51,7 @@ const ServiceItem: React.FC = () => { /> )} - {item && service.Panel && } + {item && service.Panel && } ); }; -- cgit v1.2.3