2024-01-25 10:48:20 +02:00
|
|
|
import { env } from 'next-runtime-env';
|
|
|
|
|
|
2023-12-02 09:38:24 +11:00
|
|
|
import { Button, Section, Text } from '../components';
|
2023-09-27 15:34:16 +10:00
|
|
|
import { TemplateDocumentImage } from './template-document-image';
|
2023-09-26 15:39:34 +10:00
|
|
|
|
2023-09-18 11:49:37 +00:00
|
|
|
export interface TemplateResetPasswordProps {
|
2023-09-18 14:31:04 +00:00
|
|
|
userName: string;
|
|
|
|
|
userEmail: string;
|
2023-09-18 11:49:37 +00:00
|
|
|
assetBaseUrl: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const TemplateResetPassword = ({ assetBaseUrl }: TemplateResetPasswordProps) => {
|
2024-01-25 10:48:20 +02:00
|
|
|
const NEXT_PUBLIC_WEBAPP_URL = env('NEXT_PUBLIC_WEBAPP_URL');
|
|
|
|
|
|
2023-09-18 11:49:37 +00:00
|
|
|
return (
|
2023-12-02 09:38:24 +11:00
|
|
|
<>
|
2023-09-26 15:39:34 +10:00
|
|
|
<TemplateDocumentImage className="mt-6" assetBaseUrl={assetBaseUrl} />
|
2023-09-18 11:49:37 +00:00
|
|
|
|
2023-09-26 15:39:34 +10:00
|
|
|
<Section className="flex-row items-center justify-center">
|
2023-09-18 11:49:37 +00:00
|
|
|
<Text className="text-primary mx-auto mb-0 max-w-[80%] text-center text-lg font-semibold">
|
|
|
|
|
Password updated!
|
|
|
|
|
</Text>
|
|
|
|
|
|
|
|
|
|
<Text className="my-1 text-center text-base text-slate-400">
|
|
|
|
|
Your password has been updated.
|
|
|
|
|
</Text>
|
2023-09-27 15:34:16 +10:00
|
|
|
|
|
|
|
|
<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"
|
2024-01-25 10:48:20 +02:00
|
|
|
href={`${NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000'}/signin`}
|
2023-09-27 15:34:16 +10:00
|
|
|
>
|
|
|
|
|
Sign In
|
|
|
|
|
</Button>
|
|
|
|
|
</Section>
|
2023-09-18 11:49:37 +00:00
|
|
|
</Section>
|
2023-12-02 09:38:24 +11:00
|
|
|
</>
|
2023-09-18 11:49:37 +00:00
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default TemplateResetPassword;
|