♻️ refactor(helpers): refactor the helpers folder and related imports

This commit is contained in:
Apple\Apple
2025-06-03 23:56:39 +08:00
parent a7535aab99
commit 64b565dc15
39 changed files with 523 additions and 589 deletions

View File

@@ -8,6 +8,10 @@ import {
showError,
showInfo,
showSuccess,
getQuotaPerUnit,
renderQuota,
renderQuotaWithPrompt,
stringToColor
} from '../helpers';
import Turnstile from 'react-turnstile';
import { UserContext } from '../context/User';
@@ -54,12 +58,6 @@ import {
} from '@douyinfe/semi-icons';
import { SiTelegram, SiWechat, SiLinux } from 'react-icons/si';
import { Bell, Shield, Webhook, Globe, Settings, UserPlus, ShieldCheck } from 'lucide-react';
import {
getQuotaPerUnit,
renderQuota,
renderQuotaWithPrompt,
stringToColor,
} from '../helpers/render';
import TelegramLoginButton from 'react-telegram-login';
import { useTranslation } from 'react-i18next';