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