Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory-promotion-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
inventory-promotion-react
Commits
89697267
Commit
89697267
authored
May 12, 2021
by
Ben Anderson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added upc to products table
parent
e49d9acc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
7 deletions
+18
-7
ProductRow.jsx
src/component/ProductRow.jsx
+17
-7
ProductTable.jsx
src/component/ProductTable.jsx
+1
-0
No files found.
src/component/ProductRow.jsx
View file @
89697267
...
...
@@ -13,9 +13,9 @@ export default function ProductRow({ product, handleDelete }) {
};
const
handleCloseDelete
=
(
sku
)
=>
{
handleDelete
(
sku
)
handleDelete
(
sku
)
;
handleClose
();
}
}
;
const
handleShow
=
()
=>
setShow
(
true
);
const
handleShowConfirm
=
()
=>
setShowConfirm
(
true
);
...
...
@@ -24,6 +24,7 @@ export default function ProductRow({ product, handleDelete }) {
return
(
<
tr
>
<
td
onClick=
{
handleShow
}
>
{
product
.
sku
}
</
td
>
<
td
onClick=
{
handleShow
}
>
{
product
.
upc
}
</
td
>
<
td
onClick=
{
handleShow
}
>
{
product
.
productName
}
</
td
>
<
td
onClick=
{
handleShow
}
>
$
{
product
.
price
}
</
td
>
<
td
onClick=
{
handleShow
}
>
{
product
.
category
}
</
td
>
...
...
@@ -40,10 +41,14 @@ export default function ProductRow({ product, handleDelete }) {
<
div
className=
"modal-img"
>
<
img
src=
{
product
.
productImageUrl
}
alt=
{
product
.
productName
}
/>
</
div
>
<
h5
>
{
product
.
sku
}
</
h5
>
$
{
product
.
price
}
<
br
/>
{
product
.
productDescription
}
<
br
/>
In Stock:
{
product
.
availableStock
}
<
br
/>
Blocked Stock:
{
product
.
blockedStock
}
<
br
/>
<
h5
>
{
product
.
sku
}
</
h5
>
$
{
product
.
price
}
<
br
/>
{
product
.
productDescription
}
<
br
/>
In Stock:
{
product
.
availableStock
}
<
br
/>
Blocked Stock:
{
product
.
blockedStock
}
<
br
/>
Fulfilled Stock:
{
product
.
fulfilledStock
}
</
Modal
.
Body
>
...
...
@@ -65,7 +70,12 @@ export default function ProductRow({ product, handleDelete }) {
Cancel
</
Button
>
<
Button
variant=
"danger"
onClick=
{
()
=>
handleCloseDelete
(
product
.
sku
)
}
>
Yes, delete
</
Button
>
<
Button
variant=
"danger"
onClick=
{
()
=>
handleCloseDelete
(
product
.
sku
)
}
>
Yes, delete
</
Button
>
</
Alert
>
</
Modal
.
Footer
>
</
Modal
>
...
...
src/component/ProductTable.jsx
View file @
89697267
...
...
@@ -30,6 +30,7 @@ export default function ProductTable({ productData }) {
<
thead
>
<
tr
>
<
th
>
SKU
</
th
>
<
th
>
UPC
</
th
>
<
th
>
Product Name
</
th
>
<
th
>
Price
</
th
>
<
th
>
Category
</
th
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment