diff --git a/src/components/_admin/products/productList.jsx b/src/components/_admin/products/productList.jsx index 920195b..8e9ee89 100644 --- a/src/components/_admin/products/productList.jsx +++ b/src/components/_admin/products/productList.jsx @@ -17,9 +17,9 @@ import { useQuery } from 'react-query'; const TABLE_HEAD = [ { id: 'name', label: 'Product', alignRight: false, sort: true }, { id: 'createdAt', label: 'Date', alignRight: false, sort: true }, - { id: 'inventoryType', label: 'Status', alignRight: false, sort: false }, + // { id: 'inventoryType', label: 'Status', alignRight: false, sort: false }, { id: 'rating', label: 'Rating', alignRight: false, sort: true }, - { id: 'price', label: 'Price', alignRight: false, sort: true }, + // { id: 'price', label: 'Price', alignRight: false, sort: true }, { id: '', label: 'Actions', alignRight: true } ]; export default function AdminProducts({ brands, categories, shops, isVendor }) { diff --git a/src/components/table/rows/product.jsx b/src/components/table/rows/product.jsx index f0acaa3..84f1816 100644 --- a/src/components/table/rows/product.jsx +++ b/src/components/table/rows/product.jsx @@ -76,7 +76,7 @@ export default function ProductRow({ isLoading, row, handleClickOpen, isVendor } */} {isLoading ? : <>{fDateShort(row?.createdAt, enUS)}} - + {/* {isLoading ? ( ) : ( @@ -97,7 +97,7 @@ export default function ProductRow({ isLoading, row, handleClickOpen, isVendor } (row?.available < 20 && '재고 부족') || (row?.available >= 20 && '재고 있음') )} - + */} {isLoading ? ( @@ -105,7 +105,7 @@ export default function ProductRow({ isLoading, row, handleClickOpen, isVendor } )} - {isLoading ? : fCurrency(row?.priceSale || row?.price)} + {/* {isLoading ? : fCurrency(row?.priceSale || row?.price)} */} {/* {isLoading ? ( diff --git a/src/utils/formatTime.js b/src/utils/formatTime.js index ab9774a..9003e81 100644 --- a/src/utils/formatTime.js +++ b/src/utils/formatTime.js @@ -9,7 +9,7 @@ export function fDateShortMonth(date) { return format(new Date(date), 'MM/dd/yyyy'); // Change format here (e.g., 'dd MMM yyyy') } export function fDateShort(date) { - return format(new Date(date), 'dd MMM yyyy'); + return format(new Date(date), 'yyyy MMM dd'); } export function fDateTime(date) { return format(new Date(date), 'dd MMM yyyy HH:mm');