From 6856518fee23957c41ac35845c2a2d8e0887ccdf Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 27 Jan 2026 00:33:15 +0300 Subject: [PATCH] Update Dashboard.tsx --- src/pages/Dashboard.tsx | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/src/pages/Dashboard.tsx b/src/pages/Dashboard.tsx index 37d7af3..9a53b48 100644 --- a/src/pages/Dashboard.tsx +++ b/src/pages/Dashboard.tsx @@ -2,7 +2,6 @@ import { useState, useEffect, useMemo, useRef } from 'react' import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query' import { Link } from 'react-router-dom' import { useTranslation } from 'react-i18next' -import { DotLottieReact } from '@lottiefiles/dotlottie-react' import { useAuthStore } from '../store/auth' import { subscriptionApi } from '../api/subscription' import { referralApi } from '../api/referral' @@ -38,33 +37,11 @@ const RefreshIcon = ({ className = "w-4 h-4" }: { className?: string }) => ( ) -// Check if device might be low-performance (Telegram WebApp on mobile) -const isLowPerfDevice = (() => { - const isTelegramWebApp = !!(window as unknown as { Telegram?: { WebApp?: unknown } }).Telegram?.WebApp - const isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent) - return isTelegramWebApp && isMobile -})() - -const SupportLottieIcon = () => { - // Use static icon on low-performance devices - if (isLowPerfDevice) { - return ( - - - - ) - } - - return ( -
- -
- ) -} +const SupportLottieIcon = () => ( + + + +) export default function Dashboard() { const { t } = useTranslation()