jellyfish-web/src/App.tsx

19 lines
465 B
TypeScript
Raw Normal View History

2022-10-28 01:09:59 -04:00
import { History } from '@remix-run/router';
2022-11-18 12:55:46 -05:00
import React from 'react';
2022-10-28 01:09:59 -04:00
import { HistoryRouter } from './components/HistoryRouter';
2022-11-18 12:55:46 -05:00
import { ApiProvider } from './hooks/useApi';
2023-04-13 00:33:32 +03:00
import { AppRoutes } from './routes';
2022-10-28 01:09:59 -04:00
2022-11-30 14:18:49 -05:00
const App = ({ history }: { history: History }) => {
2022-10-28 01:09:59 -04:00
return (
2022-11-30 14:18:49 -05:00
<ApiProvider>
2022-11-18 12:55:46 -05:00
<HistoryRouter history={history}>
<AppRoutes />
</HistoryRouter>
</ApiProvider>
2022-10-28 01:09:59 -04:00
);
};
export default App;