diff --git a/src/Components/Form/FormFields/DosageFormField.tsx b/src/Components/Form/FormFields/DosageFormField.tsx new file mode 100644 index 00000000000..82c2d78c43b --- /dev/null +++ b/src/Components/Form/FormFields/DosageFormField.tsx @@ -0,0 +1,21 @@ +import NumericWithUnitsFormField from "./NumericWithUnitsFormField"; +import { FormFieldBaseProps } from "./Utils"; + +type Props = FormFieldBaseProps & { + placeholder?: string; + value?: string; + autoComplete?: string; + className?: string | undefined; + disabled?: boolean; + min?: string | number; + max?: string | number; +}; + +export default function DosageFormField(props: Props) { + return ( + + ); +} diff --git a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx index 02aa03fdf71..e8fa4a0c829 100644 --- a/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx +++ b/src/Components/Form/FormFields/NumericWithUnitsFormField.tsx @@ -36,6 +36,7 @@ export default function NumericWithUnitsFormField(props: Props) { required={field.required} value={numValue} onChange={(e) => field.handleChange(e.target.value + " " + unitValue)} + disabled={props.disabled} />