diff --git a/package.json b/package.json index 3bad3557623f129ad9d43f5c8dba5eef65554192..542b76bfc0856f37bb887cd04bf4d0f494111e42 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "text-mask-addons": "^3.8.0" }, "scripts": { - "start": "cross-env REACT_APP_BASE_URL=https://pilar-be-dev.cs.ui.ac.id parcel public/index.html", + "start": "cross-env REACT_APP_BASE_URL=$(grep REACT_APP_BASE_URL .env_var | cut -d '=' -f2) parcel public/index.html", "build": "cross-env REACT_APP_BASE_URL=$(grep REACT_APP_BASE_URL .env_var | cut -d '=' -f2) parcel build public/index.html", "test": "jest", "test:coverage": "jest --coverage", diff --git a/src/component/TableUtils.jsx b/src/component/TableUtils.jsx index 4b7358e65d9847947de9cbe9d18d42c8f4b578ae..d995ae1027ff401da88c5fcda1eccb3aad832b67 100644 --- a/src/component/TableUtils.jsx +++ b/src/component/TableUtils.jsx @@ -68,7 +68,7 @@ export const itemDonationStatus = (donation) => { } export const preorderStock = (product) => ( -
{product.pre_order ? "preorder" : product.stock}
+
{product.preorder ? "preorder" : product.stock}
); export const donasiProgram = (program) => ( diff --git a/src/page/produk/ListProduk.jsx b/src/page/produk/ListProduk.jsx index 9918aa50dd078560bd090cee548e3cf072d5a6c0..3312c3d02152d81c58db21d32230447ea81067fb 100644 --- a/src/page/produk/ListProduk.jsx +++ b/src/page/produk/ListProduk.jsx @@ -15,6 +15,7 @@ const ListProduk = () => { keyValuePairs: [ ["id", "id"], ["name", "Nama Produk"], + ["preorder_duration", "Preorder Duration"], ["", "Stok", preorderStock], ["unit", "Satuan"], ["price", "Harga Satuan", stringToCurrency],