mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
chore: update copy
This commit is contained in:
@ -41,16 +41,10 @@ export const DeleteDocumentDialog = ({
|
|||||||
const { mutateAsync: deleteDocument, isLoading } = trpcReact.document.deleteDocument.useMutation({
|
const { mutateAsync: deleteDocument, isLoading } = trpcReact.document.deleteDocument.useMutation({
|
||||||
onSuccess: () => {
|
onSuccess: () => {
|
||||||
router.refresh();
|
router.refresh();
|
||||||
const deletedFileToastDescription = (
|
|
||||||
<p>
|
|
||||||
Your document <span className="text-documenso">{documentTitle}</span> has been
|
|
||||||
successfully deleted.
|
|
||||||
</p>
|
|
||||||
);
|
|
||||||
|
|
||||||
toast({
|
toast({
|
||||||
title: 'Document deleted',
|
title: 'Document deleted',
|
||||||
description: deletedFileToastDescription,
|
description: `"${documentTitle}" has been successfully deleted`,
|
||||||
duration: 5000,
|
duration: 5000,
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -80,10 +74,7 @@ export const DeleteDocumentDialog = ({
|
|||||||
<Dialog open={open} onOpenChange={(value) => !isLoading && onOpenChange(value)}>
|
<Dialog open={open} onOpenChange={(value) => !isLoading && onOpenChange(value)}>
|
||||||
<DialogContent>
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>
|
<DialogTitle>Are you sure you want to delete "{documentTitle}"?</DialogTitle>
|
||||||
Do you want to delete the <span className="text-documenso">{documentTitle}</span>{' '}
|
|
||||||
document?
|
|
||||||
</DialogTitle>
|
|
||||||
|
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
Please note that this action is irreversible. Once confirmed, your document will be
|
Please note that this action is irreversible. Once confirmed, your document will be
|
||||||
|
|||||||
Reference in New Issue
Block a user