styling groceries a little better

This commit is contained in:
2021-10-28 18:19:54 +02:00
parent 55c6704d1b
commit fb346632c5
28 changed files with 155 additions and 233 deletions

View File

@@ -62,11 +62,11 @@ const ModalAddIngredients = (props) => {
}
}
return (
<StyledModal show={props.visible} centered={true} onHide={props.closeModal} animation={false}>
<StyledModal show={props.visible} centered={true} onHide={props.closeModal} >
<ModalHeader>Add to grocerylist</ModalHeader>
<ModalDescription>Choose a grocery list and select the ingredients you would like to add to it</ModalDescription>
<WrapperInput>
<IconList />
{/* <IconList /> */}
<Input
style={{ fontSize: 20 }}
type="text"
@@ -74,14 +74,14 @@ const ModalAddIngredients = (props) => {
onChange={(text) => setListName(text.target.value)}
onFocus={() => setFocused(true)} onBlur={() => { setTimeout(() => { setFocused(false) }, 100) }}
placeholder="Grocery list" />
{listName ? <IconCheck /> : <IconWrong />}
{/* {listName ? <IconCheck /> : <IconWrong />} */}
</WrapperInput>
{focused && <WrapperDropdown>
<Dropdown array={lists.map(list => list.listName)} text={listName} setElement={setListName} />
</WrapperDropdown>
}
<WrapperInput>
<IconMeal />
{/* <IconMeal /> */}
<Input
style={{ fontSize: 20, width: 100 }}
type="number"