diff --git a/frontend/casino/src/app/hooks/index.ts b/frontend/casino/src/app/hooks/index.ts index 0922071..e7a8053 100644 --- a/frontend/casino/src/app/hooks/index.ts +++ b/frontend/casino/src/app/hooks/index.ts @@ -2,4 +2,3 @@ export * from './useDOMRef.ts' export * from './useMediaMui.ts' export * from './useScrollTop.ts' export * from './useScrollWindow.ts' -export * from './useStores.tsx' diff --git a/frontend/casino/src/app/hooks/useStores.tsx b/frontend/casino/src/app/hooks/useStores.tsx deleted file mode 100644 index bf8aa8b..0000000 --- a/frontend/casino/src/app/hooks/useStores.tsx +++ /dev/null @@ -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) - -export const StoreProvider = observer(function StoreProvider({ - children, -// eslint-disable-next-line @typescript-eslint/ban-types -}: PropsWithChildren): JSX.Element { - return ( - {children} - ) -}) - -export function useStores(): RootStore { - return useContext(StoreContext) -} diff --git a/frontend/casino/src/app/pages/MainPage/MainPage.tsx b/frontend/casino/src/app/pages/MainPage/MainPage.tsx index 49bbbe0..65b6159 100644 --- a/frontend/casino/src/app/pages/MainPage/MainPage.tsx +++ b/frontend/casino/src/app/pages/MainPage/MainPage.tsx @@ -1,4 +1,3 @@ -import CoinIcon from "../../components/icons/CoinIcon"; import ContainerLayout from "../../utils/ContainerLayout"; import GamepadIcon from "../../components/icons/GamepadIcon";