* 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>
29 lines
812 B
TypeScript
29 lines
812 B
TypeScript
import { BaseEmail } from 'src/components/BaseEmail';
|
|
import { CallToAction } from 'src/components/CallToAction';
|
|
import { Link } from 'src/components/Link';
|
|
import { MainText } from 'src/components/MainText';
|
|
import { Title } from 'src/components/Title';
|
|
|
|
type PasswordResetLinkEmailProps = {
|
|
duration: string;
|
|
link: string;
|
|
};
|
|
|
|
export const PasswordResetLinkEmail = ({
|
|
duration,
|
|
link,
|
|
}: PasswordResetLinkEmailProps) => {
|
|
return (
|
|
<BaseEmail>
|
|
<Title value="Reset your password 🗝" />
|
|
<CallToAction href={link} value="Reset" />
|
|
<MainText>
|
|
This link is only valid for the next {duration}. If link does not work,
|
|
you can use the login verification link directly:
|
|
<br />
|
|
<Link href={link} value={link} />
|
|
</MainText>
|
|
</BaseEmail>
|
|
);
|
|
};
|