feat: update README for payment process clarity and enhance success notification button behavior
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user