Fixed states
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user