You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
691 B
37 lines
691 B
3 years ago
|
import React from "react";
|
||
|
|
||
|
import { BrowserRouter, Routes, Route } from "react-router-dom";
|
||
|
|
||
|
import _ from "lodash";
|
||
|
import Home from "./Views/Home";
|
||
|
|
||
|
function Router() {
|
||
|
return (
|
||
|
<div
|
||
|
className={_.join([
|
||
|
"min-h-screen min-w-screen rtl overflow-x-hidden bg-white",
|
||
|
])}
|
||
|
>
|
||
|
<BrowserRouter>
|
||
|
<Routes>
|
||
|
<Route path="/" element={<Home />} />
|
||
|
<Route
|
||
|
path="*"
|
||
|
element={
|
||
|
<main>
|
||
|
<h1>No matches routes.</h1>
|
||
|
</main>
|
||
|
}
|
||
|
/>
|
||
|
</Routes>
|
||
|
</BrowserRouter>
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
Router.defaultProps = {
|
||
|
isDark: false,
|
||
|
};
|
||
|
|
||
|
export default Router;
|