fix build

This commit is contained in:
Aleksey_Levin 2024-01-07 16:32:46 +08:00
parent f89ee43665
commit 52516ca528
3 changed files with 0 additions and 21 deletions

View file

@ -2,4 +2,3 @@ export * from './useDOMRef.ts'
export * from './useMediaMui.ts'
export * from './useScrollTop.ts'
export * from './useScrollWindow.ts'
export * from './useStores.tsx'

View file

@ -1,19 +0,0 @@
import { observer } from 'mobx-react-lite'
import { createContext, type PropsWithChildren, useContext } from 'react'
import { type RootStore, rootStore } from '../stores/RootStore'
export const StoreContext = createContext<RootStore>(rootStore)
export const StoreProvider = observer(function StoreProvider({
children,
// eslint-disable-next-line @typescript-eslint/ban-types
}: PropsWithChildren): JSX.Element {
return (
<StoreContext.Provider value={rootStore}>{children}</StoreContext.Provider>
)
})
export function useStores(): RootStore {
return useContext(StoreContext)
}

View file

@ -1,4 +1,3 @@
import CoinIcon from "../../components/icons/CoinIcon";
import ContainerLayout from "../../utils/ContainerLayout";
import GamepadIcon from "../../components/icons/GamepadIcon";