fix build
This commit is contained in:
parent
f89ee43665
commit
52516ca528
3 changed files with 0 additions and 21 deletions
|
@ -2,4 +2,3 @@ export * from './useDOMRef.ts'
|
|||
export * from './useMediaMui.ts'
|
||||
export * from './useScrollTop.ts'
|
||||
export * from './useScrollWindow.ts'
|
||||
export * from './useStores.tsx'
|
||||
|
|
|
@ -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)
|
||||
}
|
|
@ -1,4 +1,3 @@
|
|||
import CoinIcon from "../../components/icons/CoinIcon";
|
||||
import ContainerLayout from "../../utils/ContainerLayout";
|
||||
import GamepadIcon from "../../components/icons/GamepadIcon";
|
||||
|
||||
|
|
Loading…
Reference in a new issue