-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from OpenLMIS/OMLIS-7903
OLMIS-7903
- Loading branch information
Showing
10 changed files
with
751 additions
and
123 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
41 changes: 41 additions & 0 deletions
41
src/buq/components/MOHApproval/MOHActionBarFinalApprove.jsx
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,41 @@ | ||
import React from 'react'; | ||
import Modal from '../../../admin-buq/components/Modal/Modal'; | ||
import ActionBar from '../../../react-components/ActionBar'; | ||
import ConfirmModalBody from '../../../react-components/ConfirmModalBody'; | ||
import ModalErrorMessage from '../../../react-components/ModalErrorMessage'; | ||
|
||
const MOHActionBarFinalApprove = ({ | ||
handleFinalApproveAction, | ||
displayFinalApproveModal, | ||
handleSetDisplayFinalApproveModal, | ||
displayFinalApproveErrorModal, | ||
handleSetDisplayFinalApproveErrorModal | ||
}) => ( | ||
<> | ||
<Modal | ||
isOpen={displayFinalApproveModal} | ||
sourceOfFundStyle={true} | ||
> | ||
<ConfirmModalBody | ||
onConfirm={handleFinalApproveAction} | ||
confirmMessage={'Are you sure you want to approve this forecasting?'} | ||
onCancel={() => handleSetDisplayFinalApproveModal(false)} | ||
confirmButtonText={'Approve'} | ||
/> | ||
</Modal> | ||
<ModalErrorMessage | ||
isOpen={displayFinalApproveErrorModal} | ||
customMessage="At least one pending approval needs to be selected" | ||
onClose={() => handleSetDisplayFinalApproveErrorModal(false)} | ||
/> | ||
<ActionBar | ||
onFinalApproveAction={() => handleSetDisplayFinalApproveModal(true)} | ||
finalApproveButton={true} | ||
cancelButton={false} | ||
totalCostInformation={false} | ||
sourceOfFundButton={false} | ||
/> | ||
</> | ||
) | ||
|
||
export default MOHActionBarFinalApprove |
Oops, something went wrong.