2023-04-29 22:45:52 +03:00
|
|
|
import React from 'react'
|
|
|
|
import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'
|
|
|
|
import HomePage from './pages/HomePage'
|
|
|
|
import NotFoundPage from './pages/NotFoundPage'
|
|
|
|
import { ROUTES } from './resources/routes-constants'
|
|
|
|
// import './styles/main.sass'
|
|
|
|
|
|
|
|
const RootComponent: React.FC = () => {
|
|
|
|
return (
|
|
|
|
<Router>
|
|
|
|
<Routes>
|
|
|
|
<Route path="*" element={<NotFoundPage />} />
|
|
|
|
<Route path={ROUTES.HOMEPAGE_ROUTE} element={<HomePage />} />
|
2023-04-30 01:13:31 +03:00
|
|
|
<Route path={ROUTES.GITHUB_PAGES_ROUTE} element={<HomePage />} />
|
2023-04-29 22:45:52 +03:00
|
|
|
</Routes>
|
|
|
|
</Router>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default RootComponent
|