mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
43 lines
1.4 KiB
JavaScript
Executable file
43 lines
1.4 KiB
JavaScript
Executable file
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Provider } from 'react-redux';
|
|
import { Route, Routes } from 'react-router-dom';
|
|
import { ReduxRouter } from '../lib/redux-router';
|
|
|
|
import Paths from '../constants/Paths';
|
|
import LoginContainer from '../containers/LoginContainer';
|
|
import CoreContainer from '../containers/CoreContainer';
|
|
import NotFound from './NotFound';
|
|
|
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
import 'photoswipe/dist/photoswipe.css';
|
|
import 'easymde/dist/easymde.min.css';
|
|
import '../lib/custom-ui/styles.css';
|
|
|
|
import '../styles.module.scss';
|
|
|
|
function Root({ store, history }) {
|
|
return (
|
|
<Provider store={store}>
|
|
<ReduxRouter history={history}>
|
|
<Routes>
|
|
<Route path={Paths.LOGIN} element={<LoginContainer />} />
|
|
<Route path={Paths.ROOT} element={<CoreContainer />} />
|
|
<Route path={Paths.PROJECTS} element={<CoreContainer />} />
|
|
<Route path={Paths.BOARDS} element={<CoreContainer />} />
|
|
<Route path={Paths.CARDS} element={<CoreContainer />} />
|
|
<Route path="*" element={<NotFound />} />
|
|
</Routes>
|
|
</ReduxRouter>
|
|
</Provider>
|
|
);
|
|
}
|
|
|
|
Root.propTypes = {
|
|
/* eslint-disable react/forbid-prop-types */
|
|
store: PropTypes.object.isRequired,
|
|
history: PropTypes.object.isRequired,
|
|
/* eslint-enable react/forbid-prop-types */
|
|
};
|
|
|
|
export default Root;
|