Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
redux-exercise-demo
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
Shanelle Valencia
redux-exercise-demo
Commits
aed1286a
Commit
aed1286a
authored
Apr 30, 2021
by
Shanelle Valencia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add redux exercise
parent
7b590305
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
Cart.js
basic-react-redux/src/containers/Cart.js
+0
-4
No files found.
basic-react-redux/src/containers/Cart.js
View file @
aed1286a
...
@@ -15,9 +15,6 @@ let Cart = ({addItemToCart, removeCartItem, data, cartTotal }) => {
...
@@ -15,9 +15,6 @@ let Cart = ({addItemToCart, removeCartItem, data, cartTotal }) => {
}
}
}
}
const
updateInventory
=
()
=>
{
}
const
products
=
data
.
variants
.
map
((
product
,
key
)
=>
const
products
=
data
.
variants
.
map
((
product
,
key
)
=>
...
@@ -26,7 +23,6 @@ let Cart = ({addItemToCart, removeCartItem, data, cartTotal }) => {
...
@@ -26,7 +23,6 @@ let Cart = ({addItemToCart, removeCartItem, data, cartTotal }) => {
<
img
src
=
{
product
.
image
}
><
/img
>
<
img
src
=
{
product
.
image
}
><
/img
>
<
p
>
{
product
.
name
}
<
/p
>
<
p
>
{
product
.
name
}
<
/p
>
<
p
>
{
product
.
desciption
}
<
/p
>
<
p
>
{
product
.
desciption
}
<
/p
>
{
/* <button onClick={() => addItemToCart(product)}>Add to cart</button> */
}
<
button
onClick
=
{
addItemToCart
}
>
Add
to
cart
<
/button
>
<
button
onClick
=
{
addItemToCart
}
>
Add
to
cart
<
/button
>
<
button
onClick
=
{
checkTotal
}
>
Remove
item
<
/button
>
<
button
onClick
=
{
checkTotal
}
>
Remove
item
<
/button
>
<
/ul
>
<
/ul
>
...
...
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