diff --git a/frontend/components/Item/Selector.vue b/frontend/components/Item/Selector.vue index 6ac594fb..afde2dbc 100644 --- a/frontend/components/Item/Selector.vue +++ b/frontend/components/Item/Selector.vue @@ -55,9 +55,9 @@ }; interface Props { - label: string; - modelValue: string | ItemsObject | null | undefined; - items: ItemsObject[] | string[]; + label?: string; + modelValue?: string | ItemsObject | null | undefined; + items?: ItemsObject[] | string[]; itemText?: string; itemValue?: string; search?: string; diff --git a/frontend/components/Item/View/Selectable.vue b/frontend/components/Item/View/Selectable.vue index 559c294c..c660b5ca 100644 --- a/frontend/components/Item/View/Selectable.vue +++ b/frontend/components/Item/View/Selectable.vue @@ -5,6 +5,9 @@ import MdiTable from "~icons/mdi/table"; import { Badge } from "@/components/ui/badge"; import { Button, ButtonGroup } from "@/components/ui/button"; + import BaseSectionHeader from "@/components/Base/SectionHeader.vue"; + import ItemCard from "@/components/Item/Card.vue"; + import ItemViewTable from "@/components/Item/View/Table.vue"; type Props = { view?: ViewType; diff --git a/frontend/components/Item/View/Table.types.ts b/frontend/components/Item/View/Table.types.ts index 91c271f4..b445cb6e 100644 --- a/frontend/components/Item/View/Table.types.ts +++ b/frontend/components/Item/View/Table.types.ts @@ -9,4 +9,5 @@ export type TableHeaderType = { type?: "price" | "boolean" | "name" | "location" | "date"; }; +// eslint-disable-next-line @typescript-eslint/no-explicit-any export type TableData = Record; diff --git a/frontend/components/Item/View/Table.vue b/frontend/components/Item/View/Table.vue index 62f19062..e275706d 100644 --- a/frontend/components/Item/View/Table.vue +++ b/frontend/components/Item/View/Table.vue @@ -133,7 +133,7 @@ :sibling-count="2" @update:page="pagination.page = $event" > - +