diff --git a/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx b/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx index 6cbfebf0b..d983bc951 100644 --- a/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx +++ b/staff/belen-ivars/project/app/src/components/NewRecipeForm.jsx @@ -19,10 +19,9 @@ export default function NewRecipe(props) { const title = titleInput.value const text = textInput.value const image = imageInput.value - const author = session.sessionUserId try { - await logic.createRecipe(author, title, text, image) + await logic.createRecipe(title, text, image) props.onPublish() @@ -42,7 +41,7 @@ export default function NewRecipe(props) {
Title - Text + Description Image diff --git a/staff/belen-ivars/project/app/src/components/Search.jsx b/staff/belen-ivars/project/app/src/components/Search.jsx index b9e4ad526..dcde3a396 100644 --- a/staff/belen-ivars/project/app/src/components/Search.jsx +++ b/staff/belen-ivars/project/app/src/components/Search.jsx @@ -3,7 +3,7 @@ import MethodFilter from "./MethodFilter" export default function Search(props) { return <> - + } \ No newline at end of file diff --git a/staff/belen-ivars/project/app/src/components/SearchForm.jsx b/staff/belen-ivars/project/app/src/components/SearchForm.jsx index 88fa76f04..dacbff895 100644 --- a/staff/belen-ivars/project/app/src/components/SearchForm.jsx +++ b/staff/belen-ivars/project/app/src/components/SearchForm.jsx @@ -1,5 +1,5 @@ import { useState } from "react" -import { Button, Field, Input, Form } from "../library" +import { Button, Field, Input, Form, Container } from "../library" export default function Searcher(props) { @@ -10,11 +10,19 @@ export default function Searcher(props) { // const ingredients = event.target.querySelector('#search-elements').value } + const handleCancel = event => { + event.preventDefault() + + props.onCancel() + } return +
+ + +
- } diff --git a/staff/belen-ivars/project/app/src/pages/Home.jsx b/staff/belen-ivars/project/app/src/pages/Home.jsx index 6b25f4fab..be6a78100 100644 --- a/staff/belen-ivars/project/app/src/pages/Home.jsx +++ b/staff/belen-ivars/project/app/src/pages/Home.jsx @@ -99,20 +99,20 @@ function Home(props) {
- {view === 'new-recipe' && } - {view === 'search' && }