mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 09:41:35 +10:00
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import {
|
|
AlertDialog,
|
|
AlertDialogAction,
|
|
AlertDialogCancel,
|
|
AlertDialogContent,
|
|
AlertDialogDescription,
|
|
AlertDialogFooter,
|
|
AlertDialogHeader,
|
|
AlertDialogTitle,
|
|
} from '@documenso/ui/primitives/alert-dialog';
|
|
|
|
export type SigningOrderConfirmationProps = {
|
|
open: boolean;
|
|
onOpenChange: (open: boolean) => void;
|
|
onConfirm: () => void;
|
|
};
|
|
|
|
export function SigningOrderConfirmation({
|
|
open,
|
|
onOpenChange,
|
|
onConfirm,
|
|
}: SigningOrderConfirmationProps) {
|
|
return (
|
|
<AlertDialog open={open} onOpenChange={onOpenChange}>
|
|
<AlertDialogContent>
|
|
<AlertDialogHeader>
|
|
<AlertDialogTitle>Warning</AlertDialogTitle>
|
|
<AlertDialogDescription>
|
|
You have an assistant role on the signers list, removing the signing order will change
|
|
the assistant role to signer.
|
|
</AlertDialogDescription>
|
|
</AlertDialogHeader>
|
|
<AlertDialogFooter>
|
|
<AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
<AlertDialogAction onClick={onConfirm}>Proceed</AlertDialogAction>
|
|
</AlertDialogFooter>
|
|
</AlertDialogContent>
|
|
</AlertDialog>
|
|
);
|
|
}
|