|
|
|
@ -2,6 +2,7 @@ import { capitalize, isArray, isBoolean } from "lodash";
|
|
|
|
|
import React, {
|
|
|
|
|
FunctionComponent,
|
|
|
|
|
useCallback,
|
|
|
|
|
useEffect,
|
|
|
|
|
useMemo,
|
|
|
|
|
useState,
|
|
|
|
|
} from "react";
|
|
|
|
@ -81,6 +82,10 @@ export const ProviderModal: FunctionComponent = () => {
|
|
|
|
|
|
|
|
|
|
const [staged, setChange] = useState<LooseObject>({});
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
setInfo(payload);
|
|
|
|
|
}, [payload]);
|
|
|
|
|
|
|
|
|
|
const [info, setInfo] = useState<Nullable<ProviderInfo>>(payload);
|
|
|
|
|
|
|
|
|
|
useOnModalShow<ProviderInfo>((p) => setInfo(p), ModalKey);
|
|
|
|
|