import React, { Suspense, lazy } from 'react'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import { useSelector } from 'react-redux'; import 'bootstrap/dist/css/bootstrap.min.css'; import './fonts/stylesheet.css'; import { selectAuth } from './redux/outstaffingSlice'; const AuthPageForDevelopers = lazy(() => import('./pages/AuthPageForDevelopers')); // const AuthPageForPartners = lazy(() => import('./pages/AuthPageForPartners')); const HomePage = lazy(() => import('./pages/HomePage')); const CandidatePage = lazy(() => import('./pages/CandidatePage')); const CalendarPage = lazy(() => import('./pages/CalendarPage')); const ReportPage = lazy(() => import('./pages/ReportFormPage.js')); const FormPage = lazy(() => import('./pages/FormPage.js')); const App = () => { const isAuth = useSelector(selectAuth); // const [candidateForCalendar, setCandidateForCalendar] = useState([]); // const getCandidateForCalendar = (candidate) => { // console.log('candidate ', candidate); // setCandidateForCalendar(candidate); // }; return ( Loading...}> {isAuth ? (
Not found page
) : ( {/* */} )}
); }; export default App;