♻️ Abstraction of specific AddModal component out of the Navbar (#1246)

This commit is contained in:
António Loureiro
2024-07-18 21:27:39 +01:00
committed by GitHub
parent 8faf5c9fc9
commit c38581ce26
3 changed files with 12 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ import { useEffect } from "react"
import { ItemsService } from "../../client"
import ActionsMenu from "../../components/Common/ActionsMenu"
import Navbar from "../../components/Common/Navbar"
import AddItem from "../../components/Items/AddItem"
const itemsSearchSchema = z.object({
page: z.number().catch(1),
@@ -135,7 +136,7 @@ function Items() {
Items Management
</Heading>
<Navbar type={"Item"} />
<Navbar type={"Item"} addModalAs={AddItem}/>
<ItemsTable />
</Container>
)