From ccdc330bf52fe42304a3d81df40eee281f221536 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Fri, 3 Apr 2026 17:22:30 +0200 Subject: [PATCH] Fixed states --- src/components/ModsSection.tsx | 3 +-- src/components/PlaySection.tsx | 3 ++- src/components/SettingsSection.tsx | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/ModsSection.tsx b/src/components/ModsSection.tsx index c45d78d..acf2183 100644 --- a/src/components/ModsSection.tsx +++ b/src/components/ModsSection.tsx @@ -9,8 +9,6 @@ import { X, } from "lucide-react"; import { - type Mod, - type GameVersion, getInstalledMods, discoverMods, getVersions, @@ -20,6 +18,7 @@ import { import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; import { motion, AnimatePresence } from "framer-motion"; +import { GameVersion, Mod } from "@/services/Types"; function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); diff --git a/src/components/PlaySection.tsx b/src/components/PlaySection.tsx index 99cc575..ab1aac5 100644 --- a/src/components/PlaySection.tsx +++ b/src/components/PlaySection.tsx @@ -1,8 +1,9 @@ import React, { useEffect, useState } from "react"; import { Play, Loader2 } from "lucide-react"; -import { launchGame, type GameVersion } from "../services/LauncherService"; +import { launchGame } from "../services/LauncherService"; import Bg from "@/assets/bg.png"; import { listen } from "@tauri-apps/api/event"; +import { GameVersion } from "@/services/Types"; interface PlaySectionProps { version: GameVersion; diff --git a/src/components/SettingsSection.tsx b/src/components/SettingsSection.tsx index 884a4ba..a24a113 100644 --- a/src/components/SettingsSection.tsx +++ b/src/components/SettingsSection.tsx @@ -7,12 +7,9 @@ import { Info, AlertTriangle, } from "lucide-react"; -import { - getSettings, - updateSettings, - type LauncherSettings, -} from "../services/LauncherService"; +import { getSettings, updateSettings } from "../services/LauncherService"; import { motion } from "framer-motion"; +import { LauncherSettings } from "@/services/Types"; const SettingsSection: React.FC = () => { const [settings, setSettings] = useState(null);