feat: permissions service full access.

This commit is contained in:
a.bouhuolia
2021-12-26 18:26:05 +02:00
parent 1d505db7bf
commit 0dddf3d1d0
14 changed files with 790 additions and 202 deletions

View File

@@ -0,0 +1,14 @@
import { useDeepCompareEffect } from 'hooks/utils';
export function FormikObserver({ onChange, values }) {
useDeepCompareEffect(() => {
onChange(values);
}, [values]);
return null;
}
FormikObserver.defaultProps = {
onChange: () => null,
};

View File

@@ -1 +1,2 @@
export * from './FormObserver';
export * from './FormObserver';
export * from './FormikObserver';