feat: add email forgot password action

Updated email template imports
This commit is contained in:
David Nguyen
2023-09-27 15:34:16 +10:00
committed by Mythie
parent 0c607e6b39
commit 8fb5fdc058
11 changed files with 22 additions and 13 deletions

View File

@ -2,7 +2,7 @@ import { Button, Column, Img, Section, Tailwind, Text } from '@react-email/compo
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export interface TemplateDocumentCompletedProps {
downloadLink: string;

View File

@ -2,7 +2,7 @@ import { Button, Section, Tailwind, Text } from '@react-email/components';
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export interface TemplateDocumentInviteProps {
inviterName: string;

View File

@ -2,7 +2,7 @@ import { Column, Img, Section, Tailwind, Text } from '@react-email/components';
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export interface TemplateDocumentPendingProps {
documentName: string;

View File

@ -2,7 +2,7 @@ import { Button, Column, Img, Link, Section, Tailwind, Text } from '@react-email
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export interface TemplateDocumentSelfSignedProps {
documentName: string;
@ -49,7 +49,7 @@ export const TemplateDocumentSelfSigned = ({
<Text className="mx-auto mb-6 mt-1 max-w-[80%] text-center text-base text-slate-400">
Create a{' '}
<Link
href={`${process.env.NEXT_PUBLIC_WEBAPP_URL}/signup`}
href={`${process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000'}/signup`}
target="_blank"
className="text-documenso-700 hover:text-documenso-600 whitespace-nowrap"
>

View File

@ -2,7 +2,7 @@ import { Button, Section, Tailwind, Text } from '@react-email/components';
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export type TemplateForgotPasswordProps = {
resetPasswordLink: string;

View File

@ -1,8 +1,8 @@
import { Section, Tailwind, Text } from '@react-email/components';
import { Button, Section, Tailwind, Text } from '@react-email/components';
import * as config from '@documenso/tailwind-config';
import TemplateDocumentImage from './template-document-image';
import { TemplateDocumentImage } from './template-document-image';
export interface TemplateResetPasswordProps {
userName: string;
@ -31,6 +31,15 @@ export const TemplateResetPassword = ({ assetBaseUrl }: TemplateResetPasswordPro
<Text className="my-1 text-center text-base text-slate-400">
Your password has been updated.
</Text>
<Section className="mb-6 mt-8 text-center">
<Button
className="bg-documenso-500 inline-flex items-center justify-center rounded-lg px-6 py-3 text-center text-sm font-medium text-black no-underline"
href={`${process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000'}/signin`}
>
Sign In
</Button>
</Section>
</Section>
</Tailwind>
);