[fix[ building error and migrate to v0.0.3
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { addToast } from "@heroui/react"
|
||||
import { FolderFocusOne } from "@icon-park/react"
|
||||
import { Card, CardBody, CardHeader, CardIcon } from "../window/Card"
|
||||
import { open } from "@tauri-apps/plugin-fs"
|
||||
|
||||
interface RoundedButtonProps {
|
||||
children?: React.ReactNode
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
import { addToast, Button, Chip, Spinner } from "@heroui/react"
|
||||
import { useRouter } from "next/navigation"
|
||||
import { useEffect, useState } from "react"
|
||||
import { steamStore, useSteamStore } from "@/store/steam"
|
||||
import { useSteamStore } from "@/store/steam"
|
||||
import { open } from "@tauri-apps/plugin-dialog"
|
||||
import { invoke } from "@tauri-apps/api/core"
|
||||
import { onOpenUrl } from "@tauri-apps/plugin-deep-link"
|
||||
import path from "path"
|
||||
|
||||
/**
|
||||
* 检查指定路径的有效性
|
||||
@@ -35,7 +34,7 @@ export function Prepare() {
|
||||
const [, setCs2Dir] = useState(steam.state.cs2Dir)
|
||||
|
||||
useEffect(() => {
|
||||
const initValues = async () => {
|
||||
const initValues = () => {
|
||||
const initialSteamDir = steam.state.steamDir
|
||||
const initialCs2Dir = steam.state.cs2Dir
|
||||
|
||||
@@ -54,7 +53,7 @@ export function Prepare() {
|
||||
setLoading(false)
|
||||
}, 300)
|
||||
}
|
||||
void initValues()
|
||||
initValues()
|
||||
})
|
||||
|
||||
const handleSelectSteamDir = async () => {
|
||||
|
||||
Reference in New Issue
Block a user