mirror of
https://github.com/urosran/cally.git
synced 2026-10-23 09:57:55 +00:00
add groceryContext and manipulation
This commit is contained in:
@@ -4,34 +4,19 @@ import Octicons from "@expo/vector-icons/Octicons";
|
||||
import GroceryList from "@/components/pages/grocery/GroceryList";
|
||||
import AddGroceryItem from "@/components/pages/grocery/AddGroceryItem";
|
||||
import { useAuthContext } from "@/contexts/AuthContext";
|
||||
import { GroceryProvider } from "@/contexts/GroceryContext";
|
||||
import TopDisplay from "@/components/pages/grocery/TopDisplay";
|
||||
|
||||
export default function Screen() {
|
||||
return (
|
||||
<View>
|
||||
<AddGroceryItem />
|
||||
<View backgroundColor="#e1e1e1" paddingL-20 paddingT-20 paddingB-10>
|
||||
<Text text50BL marginB-10 color="black">
|
||||
Welcome to your grocery list!
|
||||
</Text>
|
||||
<View row bottom style={{ justifyContent: "space-between" }}>
|
||||
<View>
|
||||
<Text text70BL color="black">
|
||||
X approved items
|
||||
</Text>
|
||||
<Text text70BL color="black">
|
||||
Y pending items
|
||||
</Text>
|
||||
</View>
|
||||
<Button
|
||||
backgroundColor="#e1e1e1"
|
||||
right
|
||||
children={<Octicons name="share" size={24} color="black" />}
|
||||
/>
|
||||
<GroceryProvider>
|
||||
<View>
|
||||
<AddGroceryItem />
|
||||
<TopDisplay />
|
||||
<View>
|
||||
<GroceryList />
|
||||
</View>
|
||||
</View>
|
||||
<View>
|
||||
<GroceryList />
|
||||
</View>
|
||||
</View>
|
||||
</GroceryProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user