diff --git a/src/pages/home.tsx b/src/pages/home.tsx index b81d6aff..a335894c 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -39,8 +39,9 @@ import { updateProfile } from "@/services/cmds"; import { SidebarTrigger } from "@/components/ui/sidebar"; import parseTraffic from "@/utils/parse-traffic"; import { useAppData } from "@/providers/app-data-provider"; -import {PowerButton} from "@/components/home/power-button"; -import {cn} from "@root/lib/utils"; +import { PowerButton } from "@/components/home/power-button"; +import { cn } from "@root/lib/utils"; +import map from "../assets/image/map.svg"; const MinimalHomePage: React.FC = () => { const { t } = useTranslation(); @@ -148,7 +149,7 @@ const MinimalHomePage: React.FC = () => { try { await updateProfile(currentProfile.uid); toast.success(t("Profile Updated Successfully")); - mutateProfiles(); // Обновляем данные в UI + mutateProfiles(); } catch (err: any) { toast.error(t("Failed to update profile"), { description: err.message }); } finally { @@ -182,7 +183,7 @@ const MinimalHomePage: React.FC = () => {
World map @@ -343,7 +344,7 @@ const MinimalHomePage: React.FC = () => {
)} -
+
{profileItems.length > 0 ? ( ) : (