This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-11571): Desk: add confirmation dialog
- Loading branch information
1 parent
c54c044
commit a8f4a62
Showing
4 changed files
with
74 additions
and
3 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
47 changes: 47 additions & 0 deletions
47
src/components/pages/Desk/DeskConfirmDialog/DeskConfirmDialog.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,47 @@ | ||
import PropTypes from "prop-types" | ||
import React from 'react' | ||
|
||
import { ReactComponent as AlertSvg } from "../../../../icons/ico-alert-grey.svg" | ||
import { DialogBox } from "../../../layout/DialogBox/DialogBox" | ||
|
||
let DeskConfirmDialog = ({ onConfirm, onCancel }) => { | ||
return ( | ||
<DialogBox extraClassNames="provider-import-confirmation-dialog"> | ||
<AlertSvg /> | ||
<div className="title"> | ||
<strong> | ||
Voulez-vous vraiment invalider cette contremarque ? | ||
</strong> | ||
</div> | ||
<div className="explanation"> | ||
<p> | ||
Cette contremarque a déjà été validée. Si vous l’invalidez, la réservation ne | ||
vous sera pas remboursée. | ||
</p> | ||
</div> | ||
<div className="actions"> | ||
<button | ||
className="secondary-button" | ||
onClick={onCancel} | ||
type="submit" | ||
> | ||
Annulé | ||
</button> | ||
<button | ||
className="primary-button confirm" | ||
onClick={onConfirm} | ||
type="button" | ||
> | ||
Continuer | ||
</button> | ||
</div> | ||
</DialogBox> | ||
) | ||
} | ||
|
||
DeskConfirmDialog.propTypes = { | ||
onCancel: PropTypes.func.isRequired, | ||
onConfirm: PropTypes.func.isRequired, | ||
} | ||
|
||
export default DeskConfirmDialog |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.