From 6e0a1e3a8648a382e9171795a7d0c8a36a4e92ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frane=20Poli=C4=87?= <16856471+fPolic@users.noreply.github.com> Date: Tue, 22 Oct 2024 14:27:05 +0200 Subject: [PATCH] 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` --- .../use-reservation-table-columns.tsx | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/packages/admin/dashboard/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-columns.tsx b/packages/admin/dashboard/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-columns.tsx index 21cc3e76d8..922a84e46a 100644 --- a/packages/admin/dashboard/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-columns.tsx +++ b/packages/admin/dashboard/src/routes/reservations/reservation-list/components/reservation-list-table/use-reservation-table-columns.tsx @@ -30,26 +30,29 @@ export const useReservationTableColumns = () => { ) }, }), - columnHelper.accessor("line_item", { - header: t("fields.order"), - cell: ({ getValue }) => { - const inventoryItem = getValue() - - if (!inventoryItem || !inventoryItem.order?.display_id) { - return - } - - return ( -
- - - #{inventoryItem.order.display_id} - - -
- ) - }, - }), + /** + * TEMP: hide this column until a link is added + */ + // columnHelper.accessor("line_item", { + // header: t("fields.order"), + // cell: ({ getValue }) => { + // const inventoryItem = getValue() + // + // if (!inventoryItem || !inventoryItem.order?.display_id) { + // return + // } + // + // return ( + //
+ // + // + // #{inventoryItem.order.display_id} + // + // + //
+ // ) + // }, + // }), columnHelper.accessor("description", { header: t("fields.description"), cell: ({ getValue }) => {