mirror of
https://github.com/array-in-a-matrix/foodie.git
synced 2025-04-02 10:32:08 -04:00
remove bookmark button
This commit is contained in:
parent
cb21810378
commit
5c7e2b4d52
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,6 @@ import RecipeList from "../store/recipe-context"
|
|||
import { useContext } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
|
||||
function Bookmark() {
|
||||
const recipeContext = useContext(RecipeList);
|
||||
const loadedRecipe = useContext(RecipeList).recipeList;
|
||||
|
@ -24,6 +23,7 @@ function Bookmark() {
|
|||
<h2 style={{ fontSize: "125%" }}>{loadedRecipe[i].name}</h2> {/* //? name of recipe */}
|
||||
<p style={{ fontSize: "80%", fontFamily: 'Archivo', }} >{loadedRecipe[i].description}</p> {/* //? small description of the recipe */}
|
||||
</div>
|
||||
<button onClick={() => unbookmark} className="btn btn-danger">Remove bookmark</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue