fix: build problem

This commit is contained in:
Purp1e
2024-09-27 16:13:05 +08:00
parent d62f4f9389
commit 42b3210584
3 changed files with 6 additions and 6 deletions

View File

@@ -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 (
<div
className="flex flex-col items-center justify-center w-full h-screen gap-6"
@@ -15,12 +15,12 @@ export default function Page() {
<input
className="px-2 py-1 rounded-lg"
value={dir}
onChange={(e) => updateDir(e.target.value)}
onChange={(e) => setDir(e.target.value)}
/>
<input
className="px-2 py-1 rounded-lg"
value={csDir}
onChange={(e) => updateCsDir(e.target.value)}
onChange={(e) => setCsDir(e.target.value)}
/>
<p>{currentUser().steamID64}</p>

View File

@@ -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 = () => {

View File

@@ -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 }[]
}