From 52516ca528a0ee4da863c3f76b310357143c82ef Mon Sep 17 00:00:00 2001 From: Aleksey_Levin Date: Sun, 7 Jan 2024 16:32:46 +0800 Subject: [PATCH] fix build --- frontend/casino/src/app/hooks/index.ts | 1 - frontend/casino/src/app/hooks/useStores.tsx | 19 ------------------- .../src/app/pages/MainPage/MainPage.tsx | 1 - 3 files changed, 21 deletions(-) delete mode 100644 frontend/casino/src/app/hooks/useStores.tsx 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";