From 10c82e88ae0f15eeb8a79a77a014b02fa9c167bf Mon Sep 17 00:00:00 2001 From: fakz9 Date: Sat, 11 May 2024 01:11:02 +0300 Subject: [PATCH] feat: attrs on product --- src/client/models/ProductSchema.ts | 1 + .../components/ProductsTable/columns.tsx | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/client/models/ProductSchema.ts b/src/client/models/ProductSchema.ts index ba78cdf..27107d9 100644 --- a/src/client/models/ProductSchema.ts +++ b/src/client/models/ProductSchema.ts @@ -14,5 +14,6 @@ export type ProductSchema = { color?: (string | null); composition?: (string | null); size?: (string | null); + additionalInfo?: (string | null); }; diff --git a/src/pages/ProductsPage/components/ProductsTable/columns.tsx b/src/pages/ProductsPage/components/ProductsTable/columns.tsx index 1413708..dc8ade5 100644 --- a/src/pages/ProductsPage/components/ProductsTable/columns.tsx +++ b/src/pages/ProductsPage/components/ProductsTable/columns.tsx @@ -62,6 +62,31 @@ export const useProductsTableColumns = () => { accessorKey: "size", header: "Размер", enableSorting: false + }, + { + accessorKey: "weight", + header: "Вес", + enableSorting: false + }, + { + accessorKey: "price", + header: "Цена", + enableSorting: false + }, + { + accessorKey: "quantity", + header: "Количество", + enableSorting: false + }, + { + accessorKey: "description", + header: "Описание", + enableSorting: false + }, + { + accessorKey: "additionalInfo", + header: "Доп. информация", + enableSorting: false } ], []);