mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-08-29 02:25:26 +00:00
Migrate to Vite from CRA
This commit is contained in:
28
src/App.jsx
Normal file
28
src/App.jsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
|
||||
import Editor from "./pages/Editor";
|
||||
import LandingPage from "./pages/LandingPage";
|
||||
import Survey from "./pages/Survey";
|
||||
import BugReport from "./pages/BugReport";
|
||||
import SignUp from "./pages/Signup";
|
||||
import Shortcuts from "./pages/Shortcuts"
|
||||
import Login from "./pages/Login";
|
||||
import Templates from "./pages/Templates";
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<Router>
|
||||
<Routes>
|
||||
<Route path="/" element={<LandingPage />} />
|
||||
<Route path="/editor" element={<Editor />} />
|
||||
<Route path="/survey" element={<Survey />} />
|
||||
<Route path="/shortcuts" element={<Shortcuts />} />
|
||||
<Route path="/bug_report" element={<BugReport />} />
|
||||
<Route path="/signup" element={<SignUp />} />
|
||||
<Route path="/login" element={<Login />} />
|
||||
<Route path="/templates" element={<Templates />} />
|
||||
</Routes>
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
Reference in New Issue
Block a user