Remove connections prop
This commit is contained in:
+2
-3
@@ -2,13 +2,12 @@ import { History } from '@remix-run/router';
|
||||
import React from 'react';
|
||||
|
||||
import { HistoryRouter } from './components/HistoryRouter';
|
||||
import ServerConnections from './components/ServerConnections';
|
||||
import { ApiProvider } from './hooks/useApi';
|
||||
import AppRoutes from './routes/index';
|
||||
|
||||
const App = ({ history, connections }: { history: History, connections: typeof ServerConnections }) => {
|
||||
const App = ({ history }: { history: History }) => {
|
||||
return (
|
||||
<ApiProvider connections={connections}>
|
||||
<ApiProvider>
|
||||
<HistoryRouter history={history}>
|
||||
<AppRoutes />
|
||||
</HistoryRouter>
|
||||
|
||||
Reference in New Issue
Block a user