Fixed states

This commit is contained in:
2026-04-03 17:22:30 +02:00
parent a1c4e9d952
commit ccdc330bf5
3 changed files with 5 additions and 8 deletions
+1 -2
View File
@@ -9,8 +9,6 @@ import {
X, X,
} from "lucide-react"; } from "lucide-react";
import { import {
type Mod,
type GameVersion,
getInstalledMods, getInstalledMods,
discoverMods, discoverMods,
getVersions, getVersions,
@@ -20,6 +18,7 @@ import {
import { clsx, type ClassValue } from "clsx"; import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge"; import { twMerge } from "tailwind-merge";
import { motion, AnimatePresence } from "framer-motion"; import { motion, AnimatePresence } from "framer-motion";
import { GameVersion, Mod } from "@/services/Types";
function cn(...inputs: ClassValue[]) { function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs)); return twMerge(clsx(inputs));
+2 -1
View File
@@ -1,8 +1,9 @@
import React, { useEffect, useState } from "react"; import React, { useEffect, useState } from "react";
import { Play, Loader2 } from "lucide-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 Bg from "@/assets/bg.png";
import { listen } from "@tauri-apps/api/event"; import { listen } from "@tauri-apps/api/event";
import { GameVersion } from "@/services/Types";
interface PlaySectionProps { interface PlaySectionProps {
version: GameVersion; version: GameVersion;
+2 -5
View File
@@ -7,12 +7,9 @@ import {
Info, Info,
AlertTriangle, AlertTriangle,
} from "lucide-react"; } from "lucide-react";
import { import { getSettings, updateSettings } from "../services/LauncherService";
getSettings,
updateSettings,
type LauncherSettings,
} from "../services/LauncherService";
import { motion } from "framer-motion"; import { motion } from "framer-motion";
import { LauncherSettings } from "@/services/Types";
const SettingsSection: React.FC = () => { const SettingsSection: React.FC = () => {
const [settings, setSettings] = useState<LauncherSettings | null>(null); const [settings, setSettings] = useState<LauncherSettings | null>(null);