File tree Expand file tree Collapse file tree 7 files changed +12
-7
lines changed Expand file tree Collapse file tree 7 files changed +12
-7
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 11function 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.
Original file line number Diff line number Diff line change 1- import './Recipe.css ';
1+ import { useParams } from '@solidjs/router ';
22
33import { useRecipeContext } from '../../contexts/RecipeContext' ;
44
5+ import './Recipe.css' ;
6+
57function 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.
You can’t perform that action at this time.
0 commit comments