mirror of
https://github.com/documenso/documenso.git
synced 2026-07-24 08:54:20 +10:00
138d663c25
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
48 lines
1.3 KiB
TypeScript
48 lines
1.3 KiB
TypeScript
import { Trans } from '@lingui/react/macro';
|
|
|
|
import { Container, Heading, Section, Text } from '../components';
|
|
|
|
interface TemplateDocumentRejectionConfirmedProps {
|
|
recipientName: string;
|
|
documentName: string;
|
|
documentOwnerName: string;
|
|
reason?: string;
|
|
}
|
|
|
|
export function TemplateDocumentRejectionConfirmed({
|
|
recipientName,
|
|
documentName,
|
|
documentOwnerName,
|
|
reason,
|
|
}: TemplateDocumentRejectionConfirmedProps) {
|
|
return (
|
|
<Container>
|
|
<Section>
|
|
<Heading className="font-semibold text-2xl">
|
|
<Trans>Rejection Confirmed</Trans>
|
|
</Heading>
|
|
|
|
<Text className="text-base text-primary">
|
|
<Trans>
|
|
This email confirms that you have rejected the document{' '}
|
|
<strong className="font-bold">"{documentName}"</strong> sent by {documentOwnerName}.
|
|
</Trans>
|
|
</Text>
|
|
|
|
{reason && (
|
|
<Text className="font-medium text-base text-slate-400">
|
|
<Trans>Rejection reason: {reason}</Trans>
|
|
</Text>
|
|
)}
|
|
|
|
<Text className="text-base">
|
|
<Trans>
|
|
The document owner has been notified of this rejection. No further action is required from you at this time.
|
|
The document owner may contact you with any questions regarding this rejection.
|
|
</Trans>
|
|
</Text>
|
|
</Section>
|
|
</Container>
|
|
);
|
|
}
|