tidy up
This commit is contained in:
parent
3510cf28a9
commit
6ad2d6d7d3
9 changed files with 26 additions and 71 deletions
|
@ -1,8 +1,8 @@
|
|||
import "./App.css";
|
||||
import Cookbook from "./pages/Cookbook.tsx";
|
||||
import Index from "./pages/Index.tsx";
|
||||
import RecipePage from "./pages/RecipePage.tsx";
|
||||
import AddRecipe from "./pages/AddRecipe.tsx";
|
||||
import Search from "./pages/Search.tsx"
|
||||
import About from "./pages/About.tsx"
|
||||
|
||||
import RecipeBookTabs from "./components/RecipeBookTabs.tsx";
|
||||
import { Routes, Route } from "react-router-dom";
|
||||
|
@ -13,10 +13,10 @@ function App() {
|
|||
<RecipeBookTabs />
|
||||
<main className="flex-1 overflow-auto">
|
||||
<Routes>
|
||||
<Route path="/" element={<Cookbook />} />
|
||||
<Route path="/" element={<Index />} />
|
||||
<Route path="/recipe/:id" element={<RecipePage />} />
|
||||
<Route path="/add-recipe" element={<AddRecipe />} />
|
||||
<Route path="/search" element={<Search />} />
|
||||
<Route path="/about" element={<About />} />
|
||||
</Routes>
|
||||
</main>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue