[fix[ building error and migrate to v0.0.3
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"use client"
|
||||
import { steamStore, useSteamStore } from "@/store/steam"
|
||||
import { useSteamStore } from "@/store/steam"
|
||||
import { useEffect } from "react"
|
||||
import "./globals.css"
|
||||
import Providers from "./providers"
|
||||
@@ -16,10 +16,10 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
||||
const debounceSteamDir = useDebounce(steam.state.steamDir, 500)
|
||||
const debounceCs2Dir = useDebounce(steam.state.cs2Dir, 500)
|
||||
useEffect(() => {
|
||||
steam.checkSteamDirValid()
|
||||
void steam.checkSteamDirValid()
|
||||
}, [debounceSteamDir])
|
||||
useEffect(() => {
|
||||
steam.checkCs2DirValid()
|
||||
void steam.checkCs2DirValid()
|
||||
}, [debounceCs2Dir])
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user