feat(affiliate): Add Affiliate component with commission display and invite link functionality

This commit is contained in:
web@ppanel
2025-01-03 13:54:33 +07:00
parent fb0c510b93
commit 4aea4e811f
8 changed files with 134 additions and 121 deletions
+2 -1
View File
@@ -23,7 +23,7 @@ import Image from 'next/image';
import { useRouter } from 'next/navigation';
import { useEffect, useState, useTransition } from 'react';
export default function Recharge(props: ButtonProps) {
export default function Recharge(props: Readonly<ButtonProps>) {
const t = useTranslations('subscribe');
const { common } = useGlobalStore();
const { currency } = common;
@@ -38,6 +38,7 @@ export default function Recharge(props: ButtonProps) {
});
const { data: paymentMethods } = useQuery({
enabled: open,
queryKey: ['getAvailablePaymentMethods'],
queryFn: async () => {
const { data } = await getAvailablePaymentMethods();