Refactored launcherservice

This commit is contained in:
2026-04-03 16:23:28 +02:00
parent a48f5a19f3
commit 78ad9ea312
5 changed files with 321 additions and 190 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import {
User,
LogOut,
} from "lucide-react";
import { launcherService, type GameVersion } from "./services/LauncherService";
import { getVersions, type GameVersion } from "./services/LauncherService";
import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge";
@@ -38,7 +38,7 @@ const App: React.FC = () => {
useEffect(() => {
const fetchVersions = async () => {
const v = await launcherService.getVersions();
const v = await getVersions();
setVersions(v);
if (v.length > 0) setSelectedVersion(v[0]);
};