feat: update API and database structure for membership confirmation and wallet integration
- Refactor API calls to use 'medreport' schema for membership confirmation and account updates - Enhance success notification component to include wallet balance and expiration details - Modify database types to reflect new 'medreport' schema and add product-related tables - Update localization files to support new wallet messages - Adjust SQL migration scripts for proper schema references and function definitions
This commit is contained in:
@@ -11,12 +11,17 @@ export const SuccessNotification = ({
|
||||
title,
|
||||
titleKey,
|
||||
descriptionKey,
|
||||
walletProps,
|
||||
buttonProps,
|
||||
}: {
|
||||
showLogo?: boolean;
|
||||
title?: string;
|
||||
titleKey?: string;
|
||||
descriptionKey?: string;
|
||||
walletProps?: {
|
||||
amount: string;
|
||||
expiredAt: string;
|
||||
};
|
||||
buttonProps?: {
|
||||
buttonTitleKey: string;
|
||||
href: string;
|
||||
@@ -38,6 +43,16 @@ export const SuccessNotification = ({
|
||||
<Trans i18nKey={descriptionKey} />
|
||||
</p>
|
||||
</div>
|
||||
{walletProps && (
|
||||
<div>
|
||||
<Trans i18nKey="common.wallet.balance" />
|
||||
<p></p>
|
||||
<Trans
|
||||
i18nKey="common.wallet.expiredAt"
|
||||
values={{ expiredAt: '12.12.2025' }}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
{buttonProps && (
|
||||
<Button className="mt-8 w-full">
|
||||
<Link href={buttonProps.href}>
|
||||
|
||||
Reference in New Issue
Block a user