mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
feat: remove blueprint config provider.
This commit is contained in:
@@ -3,7 +3,6 @@ import { Router, Switch, Route } from 'react-router';
|
|||||||
import { createBrowserHistory } from 'history';
|
import { createBrowserHistory } from 'history';
|
||||||
import { QueryClientProvider, QueryClient } from 'react-query';
|
import { QueryClientProvider, QueryClient } from 'react-query';
|
||||||
import { ReactQueryDevtools } from 'react-query/devtools';
|
import { ReactQueryDevtools } from 'react-query/devtools';
|
||||||
import { ConfigProvider } from '@blueprintjs/core';
|
|
||||||
|
|
||||||
import 'style/App.scss';
|
import 'style/App.scss';
|
||||||
import 'moment/locale/ar-ly';
|
import 'moment/locale/ar-ly';
|
||||||
@@ -18,17 +17,12 @@ import Authentication from 'components/Authentication';
|
|||||||
import { SplashScreen } from '../components';
|
import { SplashScreen } from '../components';
|
||||||
import { queryConfig } from '../hooks/query/base';
|
import { queryConfig } from '../hooks/query/base';
|
||||||
|
|
||||||
import { useAppIntlContext } from './AppIntlProvider';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* App inner.
|
* App inner.
|
||||||
*/
|
*/
|
||||||
function AppInsider({ history }) {
|
function AppInsider({ history }) {
|
||||||
const { direction } = useAppIntlContext();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<ConfigProvider direction={direction}>
|
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route path={'/auth'} component={Authentication} />
|
<Route path={'/auth'} component={Authentication} />
|
||||||
@@ -39,7 +33,6 @@ function AppInsider({ history }) {
|
|||||||
</Router>
|
</Router>
|
||||||
|
|
||||||
<GlobalErrors />
|
<GlobalErrors />
|
||||||
</ConfigProvider>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user