Skip to content

Commit

Permalink
update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
djnunez-aot committed Feb 20, 2025
1 parent 9b5af61 commit 98f33a6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import {
Grid,
RadioGroup,
Switch,
TextField,
Typography,
} from "@mui/material";
import { BCDesignTokens } from "epic.theme";
import { When } from "react-if";
import { YesNoRadioOptions } from "@/components/Shared/YesNoRadioOptions";
import { ConsultationRecordForm } from "../constants";
import { useState } from "react";
import ControlledTextField from "@/components/Shared/controlled/ControlledTextField";

const defaultFormData = {
consultedParties: [],
Expand Down Expand Up @@ -153,11 +153,12 @@ export default function FormFieldSection({
<Typography variant="body1" sx={{ fontWeight: 700 }}>
Notes/Comments
</Typography>
<ControlledTextField
<TextField
fullWidth
multiline
minRows={4}
name="notes"
disabled
value={mergedFormData.notes}
sx={{
mb: 0,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import {
Grid,
RadioGroup,
Switch,
TextField,
Typography,
} from "@mui/material";
import { BCDesignTokens } from "epic.theme";
import { ManagementPlanSubmissionForm } from "../ManagementPlanStaffView";
import { useState } from "react";
import { When } from "react-if";
import ControlledTextField from "@/components/Shared/controlled/ControlledTextField";

const defaultFormData = {
conditionSatisfied: "",
Expand Down Expand Up @@ -109,12 +109,12 @@ export default function FormFieldSection({ formData }: FormFieldSectionProps) {
<Typography variant="body1" sx={{ fontWeight: 700 }}>
Notes/Comments
</Typography>
<ControlledTextField
<TextField
fullWidth
multiline
disabled
minRows={4}
name="notes"
value={mergedFormData.notes}
sx={{
mb: 0,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const ManagementPlanSubmissionStaffView = () => {
informationAccurate: booleanToString(
formSubmission.submitted_form.submission_json.informationAccurate
),
notes: formSubmission.submitted_form.submission_json.notes,
notes: formSubmission.submitted_form.submission_json?.notes,
};
}, [formSubmission]);

Expand Down

0 comments on commit 98f33a6

Please sign in to comment.