FIX PR Problems

This commit is contained in:
firewookie
2026-03-10 15:35:01 +05:00
parent 1f3fae9780
commit b04cf63eb7
4 changed files with 33 additions and 40 deletions

View File

@@ -3,6 +3,7 @@ import { useParams, useNavigate } from 'react-router';
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
import { useTranslation } from 'react-i18next';
import { adminPaymentMethodsApi } from '../api/adminPaymentMethods';
import { METHOD_LABELS } from '../constants/paymentMethods';
import type { PromoGroupSimple } from '../types';
import { usePlatform } from '../platform/hooks/usePlatform';
import { createNumberInputHandler, toNumber } from '../utils/inputHelpers';
@@ -18,24 +19,6 @@ const BackIcon = () => (
</svg>
);
const METHOD_LABELS: Record<string, string> = {
telegram_stars: 'Telegram Stars',
tribute: 'Tribute',
cryptobot: 'CryptoBot',
heleket: 'Heleket',
yookassa: 'YooKassa',
mulenpay: 'MulenPay',
pal24: 'PayPalych',
platega: 'Platega',
wata: 'WATA',
freekassa: 'Freekassa',
freekassa_sbp: 'Freekassa СБП',
freekassa_card: 'Freekassa Карта',
cloudpayments: 'CloudPayments',
kassa_ai: 'Kassa AI',
riopay: 'RioPay',
};
const CheckIcon = () => (
<svg className="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={2}>
<path strokeLinecap="round" strokeLinejoin="round" d="M4.5 12.75l6 6 9-13.5" />