share tab content

This commit is contained in:
Jan Prochazka
2020-12-14 18:51:51 +01:00
parent 4ab59e09d7
commit 808267d97a
4 changed files with 83 additions and 32 deletions

View File

@@ -24,6 +24,12 @@ export function FormFieldTemplate({ label, children, type }) {
);
}
export function FormCondition({ condition, children }) {
const { values } = useForm();
if (condition(values)) return children;
return null;
}
export function FormTextFieldRaw({ name, focused = false, ...other }) {
const { values, setFieldValue } = useForm();
const handleChange = (event) => {