Skip to content

Commit

Permalink
feat: procedure is a select
Browse files Browse the repository at this point in the history
  • Loading branch information
gasp committed Jul 24, 2024
1 parent 01f78e2 commit 5d0f3d9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/accessories/admin/exams/examForm/ExamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import checkIcon from "../../../../../assets/check-icon.png";
import Button from "../../../button/Button";
import ConfirmationDialog from "../../../confirmationDialog/ConfirmationDialog";
import TextField from "../../../textField/TextField";
import SelectField from "../../../selectField/SelectField";
import "./styles.scss";
import { IExamProps } from "./types";

Expand Down Expand Up @@ -193,14 +194,16 @@ const ExamForm: FC<IExamProps> = ({

<div className="row start-sm center-xs">
<div className="examForm__item halfWidth">
<TextField
field={formik.getFieldProps("procedure")}
theme="regular"
<SelectField
fieldName="selectedType"
fieldValue={formik.values.procedure}
label={t("exam.procedure")}
isValid={isValid("procedure")}
options={[{label:"1: a list of available \"string\" results", value: '1'},
{label:"2: a list of all \"boolean\" results", value: "2"},
{label: "3: exact value (it will be typed in by the laboratorist)", value: "3"}]}
errorText={getErrorText("procedure")}
isValid={isValid("procedure")}
onBlur={formik.handleBlur}
type="number"
disabled={isLoading}
/>
</div>
Expand Down

0 comments on commit 5d0f3d9

Please sign in to comment.