1234567891011121314151617181920212223242526272829303132 |
- import './App.scss'
- import { Provider } from 'react-redux'
- import { Router} from 'react-router-dom'
- import React from 'react'
- import { store } from './redux/store'
- import 'antd/dist/antd.css'
- import { actionFullProfilePageTypeSaga } from './actions/typeSaga/myDataTypesSaga'
- import { CShowHeader } from './pages/header'
- import { CRouting } from './components/Routing'
- import history from './helpers/history'
- import Root from './components/rootTheme/index'
- import ThemeProvider from './providers/ThemeProvider'
- store.subscribe(() => console.log(store.getState()))
- function App() {
- if (store.getState().auth?.token)
- store.dispatch(actionFullProfilePageTypeSaga())
- return (
- <Router history={history}>
- <Provider store={store}>
-
- <div className="App">
- <CRouting />
- <CShowHeader />
- </div>
- </Provider>
- </Router>
- )
- }
- export default App
|