Skip to content

Commit cf37111

Browse files
authoredMar 5, 2025
Merge pull request #6842 from msupply-foundation/999-fix-field-order
Rearrange date and clinician in prescriptions
2 parents eebe5ad + 0aa7004 commit cf37111

File tree

1 file changed

+14
-14
lines changed
  • client/packages/invoices/src/Prescriptions/DetailView

1 file changed

+14
-14
lines changed
 

‎client/packages/invoices/src/Prescriptions/DetailView/Toolbar.tsx

+14-14
Original file line numberDiff line numberDiff line change
@@ -112,20 +112,6 @@ export const Toolbar: FC = () => {
112112
}
113113
/>
114114
)}
115-
<InputWithLabelRow
116-
label={t('label.date')}
117-
Input={
118-
<DateTimePickerInput
119-
disabled={isDisabled}
120-
value={DateUtils.getDateOrNull(dateValue) ?? new Date()}
121-
format="P"
122-
onChange={handleDateChange}
123-
maxDate={new Date()}
124-
/>
125-
}
126-
/>
127-
</Grid>
128-
<Grid container flexDirection="column" display="flex" gap={1}>
129115
<InputWithLabelRow
130116
label={t('label.clinician')}
131117
Input={
@@ -143,6 +129,20 @@ export const Toolbar: FC = () => {
143129
}
144130
/>
145131
</Grid>
132+
<Grid container flexDirection="column" display="flex" gap={1}>
133+
<InputWithLabelRow
134+
label={t('label.date')}
135+
Input={
136+
<DateTimePickerInput
137+
disabled={isDisabled}
138+
value={DateUtils.getDateOrNull(dateValue) ?? new Date()}
139+
format="P"
140+
onChange={handleDateChange}
141+
maxDate={new Date()}
142+
/>
143+
}
144+
/>
145+
</Grid>
146146
</AppBarContentPortal>
147147
);
148148
};

0 commit comments

Comments
 (0)
Please sign in to comment.