Skip to content

Commit 8da4c4b

Browse files
committed
[WIP]
1 parent a2692ee commit 8da4c4b

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

frontend/src/components/DrawerMenu.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@ function DrawerMenu(props) {
1414
</button>
1515
</nav>
1616
</header>
17-
<a href="/mealplanner">
17+
<a href="/mealplanner" onClick={closeMenu}>
1818
<i>calendar_month</i>
1919
<span>Meal Planner</span>
2020
</a>
21-
<a href="/recipes">
21+
<a href="/recipes" onClick={closeMenu}>
2222
<i>menu_book</i>
2323
<span>Recipes</span>
2424
</a>
2525
<hr class="medium" />
26-
<a href="/settings">
26+
<a href="/settings" onClick={closeMenu}>
2727
<i>settings</i>
2828
<span>Settings</span>
2929
</a>
30-
<a>
30+
<a onClick={closeMenu}>
3131
<i>logout</i>
3232
<span>Log out</span>
3333
</a>
File renamed without changes.

frontend/src/pages/MealPlanner.jsx renamed to frontend/src/pages/MealPlanner/index.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
function MealPlanner() {
22
return (
33
<article>
4-
<h4>MEAL PLANNER</h4>
4+
<section class="header center-align">
5+
<h4>Meal Planner</h4>
6+
</section>
57
</article>
68
);
79
}
File renamed without changes.

frontend/src/pages/Recipe/index.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
import './Recipe.css';
1+
import { useParams } from '@solidjs/router';
22

33
import { useRecipeContext } from '../../contexts/RecipeContext';
44

5+
import './Recipe.css';
6+
57
function Recipe() {
68
const { recipeStore } = useRecipeContext();
7-
const recipe = recipeStore.recipes[0];
9+
const params = useParams();
10+
const recipe = recipeStore.recipes[params.id];
811

912
return (
1013
<article class="medium-elevate no-padding">
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)