Spaces:
Sleeping
Sleeping
File size: 1,120 Bytes
f80e9b3 4d92953 f80e9b3 4d92953 f80e9b3 4d92953 f80e9b3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import React from "react";
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
import Layout from "./components/Layout";
import Dashboard from "./pages/Dashboard";
import Repository from "./pages/Repository";
import Scheduler from "./pages/Scheduler";
import PostEditor from "./pages/PostEditor";
import Integrations from "./pages/Integrations";
import { createPageUrl } from "./utils";
function App() {
return (
<Router>
<Routes>
<Route path="/" element={<Layout currentPageName="Dashboard"><Dashboard /></Layout>} />
<Route path={createPageUrl("Repository")} element={<Layout currentPageName="Repository"><Repository /></Layout>} />
<Route path={createPageUrl("Scheduler")} element={<Layout currentPageName="Scheduler"><Scheduler /></Layout>} />
<Route path={createPageUrl("PostEditor")} element={<Layout currentPageName="PostEditor"><PostEditor /></Layout>} />
<Route path={createPageUrl("Integrations")} element={<Layout currentPageName="Integrations"><Integrations /></Layout>} />
</Routes>
</Router>
);
}
export default App;
|