fix(dashboard): temp hide order column on reservations (#9692)
**What** - hide the order column on the reservations list until a link is introduced + impl. of `listOrderItems`
This commit is contained in:
+23
-20
@@ -30,26 +30,29 @@ export const useReservationTableColumns = () => {
|
|||||||
)
|
)
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
columnHelper.accessor("line_item", {
|
/**
|
||||||
header: t("fields.order"),
|
* TEMP: hide this column until a link is added
|
||||||
cell: ({ getValue }) => {
|
*/
|
||||||
const inventoryItem = getValue()
|
// columnHelper.accessor("line_item", {
|
||||||
|
// header: t("fields.order"),
|
||||||
if (!inventoryItem || !inventoryItem.order?.display_id) {
|
// cell: ({ getValue }) => {
|
||||||
return <PlaceholderCell />
|
// const inventoryItem = getValue()
|
||||||
}
|
//
|
||||||
|
// if (!inventoryItem || !inventoryItem.order?.display_id) {
|
||||||
return (
|
// return <PlaceholderCell />
|
||||||
<div className="flex size-full items-center overflow-hidden">
|
// }
|
||||||
<LinkButton to={`/orders/${inventoryItem.order.id}`}>
|
//
|
||||||
<span className="truncate">
|
// return (
|
||||||
#{inventoryItem.order.display_id}
|
// <div className="flex size-full items-center overflow-hidden">
|
||||||
</span>
|
// <LinkButton to={`/orders/${inventoryItem.order.id}`}>
|
||||||
</LinkButton>
|
// <span className="truncate">
|
||||||
</div>
|
// #{inventoryItem.order.display_id}
|
||||||
)
|
// </span>
|
||||||
},
|
// </LinkButton>
|
||||||
}),
|
// </div>
|
||||||
|
// )
|
||||||
|
// },
|
||||||
|
// }),
|
||||||
columnHelper.accessor("description", {
|
columnHelper.accessor("description", {
|
||||||
header: t("fields.description"),
|
header: t("fields.description"),
|
||||||
cell: ({ getValue }) => {
|
cell: ({ getValue }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user