diff --git a/src/app/prepare/page.tsx b/src/app/prepare/page.tsx index dc30391..2f56abc 100644 --- a/src/app/prepare/page.tsx +++ b/src/app/prepare/page.tsx @@ -2,7 +2,7 @@ import useSteamStore from "@/store/steam" export default function Page() { - const { dir, updateDir, csDir, updateCsDir, currentUser } = useSteamStore() + const { dir, setDir, csDir, setCsDir, currentUser } = useSteamStore() return (
updateDir(e.target.value)} + onChange={(e) => setDir(e.target.value)} /> updateCsDir(e.target.value)} + onChange={(e) => setCsDir(e.target.value)} />

{currentUser().steamID64}

diff --git a/src/components/window/Nav.tsx b/src/components/window/Nav.tsx index d08d9fd..6fca092 100644 --- a/src/components/window/Nav.tsx +++ b/src/components/window/Nav.tsx @@ -2,7 +2,7 @@ import { RocketOne, Minus, Close, Square } from "@icon-park/react" import { /* relaunch, */ exit } from "@tauri-apps/plugin-process" import { getCurrentWindow } from "@tauri-apps/api/window" -import { platform } from "@tauri-apps/plugin-os" +// import { platform } from "@tauri-apps/plugin-os" import { useRouter } from "next/navigation" const Nav = () => { diff --git a/src/types/cfgx.ts b/src/types/cfgx.ts index 588e8a5..1063d2a 100644 --- a/src/types/cfgx.ts +++ b/src/types/cfgx.ts @@ -7,8 +7,8 @@ export interface XBase { info: string } -export interface Key extends XBase {} -export interface Alias extends XBase {} +export type Key = XBase +export type Alias = XBase export interface Value extends XBase { option: { name: string; value: string }[] }