feat: update README for payment process clarity and enhance success notification button behavior

This commit is contained in:
Danel Kungla
2025-08-11 17:51:35 +03:00
parent 99ba14bab2
commit c3cab7c06d
4 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
import Image from 'next/image';
import Link from 'next/link';
import { redirect } from 'next/navigation';
import { MedReportLogo } from '@/components/med-report-logo';
@@ -56,10 +56,11 @@ export const SuccessNotification = ({
</div>
)}
{buttonProps && (
<Button className="mt-8 w-full">
<Link href={buttonProps.href}>
<Trans i18nKey={buttonProps.buttonTitleKey} />
</Link>
<Button
className="mt-8 w-full"
onClick={() => redirect(buttonProps.href)}
>
<Trans i18nKey={buttonProps.buttonTitleKey} />
</Button>
)}
</div>