modal Add item works

This commit is contained in:
2021-11-01 12:30:56 +01:00
parent e3c0555452
commit b4e68dbac4
31 changed files with 167 additions and 148 deletions

View File

@@ -14,7 +14,7 @@ export const AddRecipeButton = () => {
return (
// < Link to="/recipes/addRecipe">
<WrapperAddRecipe>
{/* <IconPlus /> */}
<IconPlus />
</WrapperAddRecipe>
// </Link>
)
@@ -24,7 +24,7 @@ export const AddIngredientsButton = (props) => {
const [visible, setVisible] = useState(false)
return (<>
<WrapperAddItem style={{ bottom: 10 }} onClick={()=>setVisible(true)}>
{/* <PlusIcon /> */}
<PlusIcon />
</WrapperAddItem>
<ModalAddIngredients id={props.id} visible={visible} closeModal={() => setVisible(false)} />
</>
@@ -41,10 +41,10 @@ export const OptionsButtonRecipe = (props) => {
}
return (
<WrapperOptions toggled={toggled} >
{/* <IconOptions toggled={toggled} onClick={() => setToggled(!toggled)} /> */}
<IconOptions toggled={toggled} onClick={() => setToggled(!toggled)} />
<WrapperOptionButtons toggled={toggled}>
{/* <IconRemove onClick={() => handleRemove()} /> */}
{/* <IconEdit onClick={() => history.push("/recipes/addRecipe/" + props.id)} /> */}
<IconRemove onClick={() => handleRemove()} />
<IconEdit onClick={() => history.push("/recipes/addRecipe/" + props.id)} />
</WrapperOptionButtons>
</WrapperOptions>
)