2024-02-15 13:30:44 +03:00
|
|
|
import "bootstrap/dist/css/bootstrap.min.css";
|
2023-04-27 13:37:41 +03:00
|
|
|
import React from "react";
|
2024-02-15 13:30:44 +03:00
|
|
|
import { useSelector } from "react-redux";
|
2023-04-27 13:37:41 +03:00
|
|
|
import {
|
2024-02-15 13:30:44 +03:00
|
|
|
Navigate,
|
2023-04-27 13:37:41 +03:00
|
|
|
Route,
|
2024-02-15 13:30:44 +03:00
|
|
|
BrowserRouter as Router,
|
|
|
|
Routes
|
2023-04-27 13:37:41 +03:00
|
|
|
} from "react-router-dom";
|
2021-08-20 11:52:23 +03:00
|
|
|
|
2023-07-14 03:03:33 +03:00
|
|
|
import { getNotification } from "@redux/outstaffingSlice";
|
2024-03-08 16:55:48 +03:00
|
|
|
import { Notification } from "@components/Notification/Notification";
|
2024-03-15 18:18:10 +03:00
|
|
|
import { MainPage } from "@pages/MainPage/MainPage";
|
2023-04-27 21:15:55 +03:00
|
|
|
|
2024-03-06 14:08:06 +03:00
|
|
|
import "assets/fonts/stylesheet.css";
|
|
|
|
import "assets/global.scss";
|
2023-01-18 17:37:52 +03:00
|
|
|
|
2022-06-01 19:59:54 +03:00
|
|
|
const App = () => {
|
2024-02-14 19:32:51 +03:00
|
|
|
const notification = useSelector(getNotification);
|
2021-09-28 12:46:16 +03:00
|
|
|
return (
|
2023-04-27 13:37:41 +03:00
|
|
|
<>
|
|
|
|
<Router>
|
|
|
|
<Routes>
|
2024-03-15 18:18:10 +03:00
|
|
|
<Route path="*" element={<MainPage />} />
|
2023-04-27 13:37:41 +03:00
|
|
|
</Routes>
|
|
|
|
</Router>
|
2024-02-14 19:32:51 +03:00
|
|
|
{notification.show && <Notification />}
|
2023-04-27 13:37:41 +03:00
|
|
|
</>
|
|
|
|
);
|
2023-01-13 13:02:48 +03:00
|
|
|
};
|
2021-05-25 14:50:01 +03:00
|
|
|
|
2023-04-27 13:37:41 +03:00
|
|
|
export default App;
|