Skip to content

Commit

Permalink
refactor: delete socket provider
Browse files Browse the repository at this point in the history
  • Loading branch information
SplitCode committed Nov 1, 2024
1 parent 9d746dd commit 92c51dc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
9 changes: 0 additions & 9 deletions frontend/src/contexts/SocketContext.js

This file was deleted.

5 changes: 1 addition & 4 deletions frontend/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -34,9 +33,7 @@ const init = async (socket) => {
<RollbarProvider config={rollbarConfig}>
<ErrorBoundary>
<ReduxProvider store={store}>
<SocketProvider socket={socket}>
<RouterProvider router={router} />
</SocketProvider>
<RouterProvider router={router} />
</ReduxProvider>
</ErrorBoundary>
</RollbarProvider>
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/store/hooks/hooks.js

This file was deleted.

0 comments on commit 92c51dc

Please sign in to comment.