Files
twenty/packages/twenty-emails/src/emails/password-update-notify.email.tsx
Thaïs a654205dbc chore: set up twenty-emails config so build isn't needed in development (#3619)
* chore: set up twenty-emails config so build isn't needed in development

* fix: fix script dependency

* chore: use @vitejs/plugin-react-swc

* Remove useless dependancy

* Fix typing

* chore: use baseUrl in twenty-emails

* chore: fix docker server prod build

* refactor: optimize Docker file and tsconfig

* fix: fix WORKDIR in docker

---------

Co-authored-by: martmull <martmull@hotmail.fr>
2024-01-29 06:17:12 -03:00

38 lines
1.0 KiB
TypeScript

import { format } from 'date-fns';
import { BaseEmail } from 'src/components/BaseEmail';
import { CallToAction } from 'src/components/CallToAction';
import { MainText } from 'src/components/MainText';
import { Title } from 'src/components/Title';
type PasswordUpdateNotifyEmailProps = {
userName: string;
email: string;
link: string;
};
export const PasswordUpdateNotifyEmail = ({
userName,
email,
link,
}: PasswordUpdateNotifyEmailProps) => {
const helloString = userName?.length > 1 ? `Dear ${userName}` : 'Dear';
return (
<BaseEmail>
<Title value="Password updated" />
<MainText>
{helloString},
<br />
<br />
This is a confirmation that password for your account ({email}) was
successfully changed on {format(new Date(), 'MMMM d, yyyy')}.
<br />
<br />
If you did not initiate this change, please contact your workspace owner
immediately.
<br />
</MainText>
<CallToAction value="Connect to Twenty" href={link} />
</BaseEmail>
);
};