BIG-22: feat: localize auto-increment dialogs.

This commit is contained in:
a.bouhuolia
2021-09-12 17:49:27 +02:00
parent d47ed3754f
commit d365cd8005
11 changed files with 128 additions and 33 deletions

View File

@@ -0,0 +1,14 @@
import { useEffect } from 'react'
export function FormObserver({ onChange, values }) {
useEffect(() => {
onChange(values);
}, [Object.values(values).join(', ')]);
return null;
}
FormObserver.defaultProps = {
onChange: () => null,
};

View File

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

View File

@@ -76,6 +76,7 @@ export * from './Alert';
export * from './Subscriptions';
export * from './Dashboard';
export * from './Drawer';
export * from './Forms';
const Hint = FieldHint;