-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAH-3119 | Add validations and perform save in drug chart modal (#660)
* add. enable24hr timer toggle * add. warnings in drug chart modal * add. success/warning notifications for drug chart modal * add. success/warning notifications for drug chart modal * add. patientId for save medication
- Loading branch information
Showing
6 changed files
with
122 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import PropTypes from "prop-types"; | ||
import React, { Suspense, lazy } from "react"; | ||
|
||
export function DrugChartModalNotification(props) { | ||
const LazyApp = lazy(() => import("@openmrs-mf/ipd/DrugChartModalNotification")); | ||
|
||
return ( | ||
<> | ||
<Suspense fallback={<p>Loading...</p>}> | ||
<LazyApp | ||
hostData={props.hostData} | ||
hostApi={props.hostApi} | ||
/> | ||
</Suspense> | ||
</> | ||
); | ||
} | ||
|
||
// Without propTypes, react2angular won't render the component | ||
DrugChartModalNotification.propTypes = { | ||
hostData: PropTypes.shape({ | ||
notificationKind: PropTypes.string, | ||
}).isRequired, | ||
hostApi: PropTypes.shape({ | ||
onClose: PropTypes.func, | ||
}).isRequired, | ||
}; |
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
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