-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Lab results form improvements (#1985)
This PR makes the following improvements to the lab results form following the recent change to make it the single source of truth for lab orders: - Refactors the error notification shown when the user tries to submit the form without filling any fields to use the Carbon InlineNotification component - Refactors the logic used to determine whether the form is empty to leverage the getValues method of react-hook-form - Increases the Stack gap to 1rem to make the form more spacious - Removes error handling concerns from the form field component - Refactors the form field component to use the Carbon TextInput or NumberInput components based on the concept datatype - Renames the result form field component to lab results form field component
- Loading branch information
1 parent
1eaec53
commit 686aece
Showing
4 changed files
with
114 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,3 +89,7 @@ | |
.spacer { | ||
margin-top: layout.$spacing-05; | ||
} | ||
|
||
.emptyFormError { | ||
margin: 0.625rem 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters