-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ddd1f0
commit 91677c1
Showing
8 changed files
with
130 additions
and
13 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
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,64 @@ | ||
import PropTypes from 'prop-types'; | ||
import { | ||
FormattedMessage, | ||
useIntl, | ||
} from 'react-intl'; | ||
|
||
import { | ||
Button, | ||
Modal, | ||
} from '@folio/stripes/components'; | ||
import { ModalFooter } from '@folio/stripes-acq-components'; | ||
|
||
export const DelayClaimModal = ({ | ||
onCancel, | ||
onConfirm, | ||
}) => { | ||
const intl = useIntl(); | ||
const modalLabel = intl.formatMessage({ id: 'ui-receiving.modal.delayClaim.heading' }); | ||
|
||
const start = ( | ||
<Button | ||
marginBottom0 | ||
onClick={onCancel} | ||
> | ||
<FormattedMessage id="stripes-acq-components.FormFooter.cancel" /> | ||
</Button> | ||
); | ||
const end = ( | ||
<> | ||
<Button | ||
buttonStyle="primary" | ||
marginBottom0 | ||
onClick={onConfirm} | ||
> | ||
<FormattedMessage id="stripes-acq-components.FormFooter.save" /> | ||
</Button> | ||
</> | ||
); | ||
|
||
const footer = ( | ||
<ModalFooter | ||
renderStart={start} | ||
renderEnd={end} | ||
/> | ||
); | ||
|
||
return ( | ||
<Modal | ||
open | ||
id="delay-claim-modal" | ||
size="small" | ||
footer={footer} | ||
label={modalLabel} | ||
aria-label={modalLabel} | ||
> | ||
Hello | ||
</Modal> | ||
); | ||
}; | ||
|
||
DelayClaimModal.propTypes = { | ||
onCancel: PropTypes.func.isRequired, | ||
onConfirm: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DelayClaimModal } from './DelayClaimModal'; |
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