2019-06-19 14:40:52 +00:00
|
|
|
import DialogContentText from "@material-ui/core/DialogContentText";
|
2019-08-09 10:26:22 +00:00
|
|
|
import React from "react";
|
2019-06-19 14:40:52 +00:00
|
|
|
|
|
|
|
import ActionDialog from "@saleor/components/ActionDialog";
|
|
|
|
import { ConfirmButtonTransitionState } from "@saleor/components/ConfirmButton";
|
|
|
|
import i18n from "../../../i18n";
|
|
|
|
|
|
|
|
export interface OrderMarkAsPaidDialogProps {
|
|
|
|
confirmButtonState: ConfirmButtonTransitionState;
|
|
|
|
open: boolean;
|
|
|
|
onClose: () => void;
|
|
|
|
onConfirm: () => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
const OrderMarkAsPaidDialog: React.StatelessComponent<
|
|
|
|
OrderMarkAsPaidDialogProps
|
|
|
|
> = ({ confirmButtonState, onClose, onConfirm, open }) => (
|
|
|
|
<ActionDialog
|
|
|
|
confirmButtonState={confirmButtonState}
|
|
|
|
open={open}
|
|
|
|
title={i18n.t("Mark order as paid")}
|
|
|
|
onClose={onClose}
|
|
|
|
onConfirm={onConfirm}
|
|
|
|
>
|
|
|
|
<DialogContentText>
|
|
|
|
{i18n.t("Are you sure you want to mark this order as paid?", {
|
|
|
|
context: "modal content"
|
|
|
|
})}
|
|
|
|
</DialogContentText>
|
|
|
|
</ActionDialog>
|
|
|
|
);
|
|
|
|
OrderMarkAsPaidDialog.displayName = "OrderMarkAsPaidDialog";
|
|
|
|
export default OrderMarkAsPaidDialog;
|