remake app ohome setup /notworking

This commit is contained in:
2021-10-24 22:18:31 +02:00
parent 4568076445
commit 55c6704d1b
76 changed files with 22173 additions and 749 deletions

View File

@@ -0,0 +1,20 @@
import React, { useState } from 'react'
//components
import TabMenu from '../../components/GroceryList/TabMenu'
import Groceries from './storageManagement/Groceries'
import Products from './storageManagement/Products'
//styling
import { WrapperGroceryPage } from './styles/GroceryListPage'
const GroceryListPage = () => {
const [currentTab, setCurrentTab] = useState("Groceries")
return (
<WrapperGroceryPage>
{
currentTab === "Groceries" ? <Groceries /> : <Products />
}
<TabMenu currentTab={currentTab} setCurrentTab={setCurrentTab} />
</WrapperGroceryPage>
)
}
export default GroceryListPage