File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -286,16 +286,14 @@ const createRecipeElement = async (recipe) => {
286
286
// Create a new column for each recipe
287
287
const recipeDiv = document . createElement ( 'div' ) ;
288
288
recipeDiv . classList . add ( 'recipe-item' ) ;
289
-
290
289
const link = document . createElement ( 'a' ) ;
291
- //link.addEventListener('click', () => openRecipeDetailPage(recipe.id));
292
-
293
- link . addEventListener ( 'click' , ( ) => openRecipeDetailPage ( recipe . id ) ) ;
294
290
291
+ link . addEventListener ( 'click' , ( ) => openRecipeDetailPage ( recipe . recipe . id ) ) ;
295
292
296
293
// Image
297
294
const imgDiv = document . createElement ( 'div' ) ;
298
295
imgDiv . classList . add ( 'imgDiv' ) ;
296
+ imgDiv . style . cursor = 'pointer' ;
299
297
const img = document . createElement ( 'img' ) ;
300
298
img . src = recipe . recipe . photoPath ;
301
299
img . alt = 'Recipe Photo' ;
You can’t perform that action at this time.
0 commit comments