diff --git a/frontend/src/contexts/SocketContext.js b/frontend/src/contexts/SocketContext.js deleted file mode 100644 index c6a31fc..0000000 --- a/frontend/src/contexts/SocketContext.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createContext } from 'react'; - -const SocketContext = createContext(null); - -const SocketProvider = ({ socket, children }) => ( - {children} -); - -export { SocketProvider, SocketContext }; diff --git a/frontend/src/init.js b/frontend/src/init.js index 580b244..aaef389 100644 --- a/frontend/src/init.js +++ b/frontend/src/init.js @@ -5,7 +5,6 @@ import { RouterProvider } from 'react-router-dom'; import { Provider as RollbarProvider, ErrorBoundary } from '@rollbar/react'; import { Provider as ReduxProvider } from 'react-redux'; import resources from './locales'; -import { SocketProvider } from './contexts/SocketContext'; import router from './router/router'; import createStore from './store/store'; @@ -34,9 +33,7 @@ const init = async (socket) => { - - - + diff --git a/frontend/src/store/hooks/hooks.js b/frontend/src/store/hooks/hooks.js deleted file mode 100644 index 09d9b6d..0000000 --- a/frontend/src/store/hooks/hooks.js +++ /dev/null @@ -1,6 +0,0 @@ -import { useContext } from 'react'; -import { SocketContext } from '../../contexts/SocketContext'; - -const useSocket = () => useContext(SocketContext); - -export default useSocket;