Fakultas Ilmu Komputer UI

Commit 69914069 authored by Fadhil Pradipta Widyanto's avatar Fadhil Pradipta Widyanto
Browse files

COLDFIX

parent 92c8aa53
......@@ -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",
......
......@@ -68,7 +68,7 @@ export const itemDonationStatus = (donation) => {
}
export const preorderStock = (product) => (
<div>{product.pre_order ? "preorder" : product.stock}</div>
<div>{product.preorder ? "preorder" : product.stock}</div>
);
export const donasiProgram = (program) => (
......
......@@ -15,6 +15,7 @@ const ListProduk = () => {
keyValuePairs: [
["id", "id"],
["name", "Nama Produk"],
["preorder_duration", "Preorder Duration"],
["", "Stok", preorderStock],
["unit", "Satuan"],
["price", "Harga Satuan", stringToCurrency],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment