mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
ui fixes
This commit is contained in:
@ -10,7 +10,7 @@ import {ProfileType, useAuthContext} from "@/contexts/AuthContext";
|
||||
import {IGrocery} from "@/hooks/firebase/types/groceryData";
|
||||
import AddPersonIcon from "@/assets/svgs/AddPersonIcon";
|
||||
|
||||
const GroceryList = () => {
|
||||
const GroceryList = ({onInputFocus}: {onInputFocus: (y: number) => void}) => {
|
||||
const {
|
||||
groceries,
|
||||
updateGroceryItem,
|
||||
@ -169,6 +169,7 @@ const GroceryList = () => {
|
||||
handleItemApproved={(id, changes) =>
|
||||
updateGroceryItem({...changes, id: id})
|
||||
}
|
||||
onInputFocus={onInputFocus}
|
||||
/>
|
||||
)}
|
||||
keyExtractor={(item) => item.id.toString()}
|
||||
@ -230,6 +231,7 @@ const GroceryList = () => {
|
||||
setSubmit: setSubmitted,
|
||||
closeEdit: () => setIsAddingGrocery(false)
|
||||
}}
|
||||
onInputFocus={onInputFocus}
|
||||
/>
|
||||
</View>
|
||||
)}
|
||||
@ -254,6 +256,7 @@ const GroceryList = () => {
|
||||
handleItemApproved={(id, changes) =>
|
||||
updateGroceryItem({...changes, id: id})
|
||||
}
|
||||
onInputFocus={onInputFocus}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user