Refactored slightly

This commit is contained in:
2026-04-04 16:45:31 +02:00
parent 85ee25aa76
commit db0b229e52
9 changed files with 67 additions and 22 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ import {
getVersions,
toggleMod,
installMod,
} from "../services/SaturnApi";
} from "../lib/saturn";
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
import { motion, AnimatePresence } from "framer-motion";
import { GameVersion, Mod } from "@/services/Types";
import { GameVersion, Mod } from "@/lib/types";
function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
+2 -2
View File
@@ -3,8 +3,8 @@ import { Play, Loader2 } from "lucide-react";
// import { launchGame } from "../services/SaturnApi";
import Bg from "@/assets/bg.png";
import { listen } from "@tauri-apps/api/event";
import { GameVersion } from "@/services/Types";
import { launch } from "@/services/LauncherApi";
import { GameVersion } from "@/lib/types";
import { launch } from "@/lib/launcher";
interface PlaySectionProps {
version: GameVersion;
+2 -2
View File
@@ -7,9 +7,9 @@ import {
Info,
AlertTriangle,
} from "lucide-react";
import { getSettings, updateSettings } from "../services/SaturnApi";
import { getSettings, updateSettings } from "../lib/saturn";
import { motion } from "framer-motion";
import { LauncherSettings } from "@/services/Types";
import { LauncherSettings } from "@/lib/types";
const SettingsSection: React.FC = () => {
const [settings, setSettings] = useState<LauncherSettings | null>(null);