diff --git a/static/css/order-hardware.css b/static/css/order-hardware.css
index fe8e3bf..da59b47 100644
--- a/static/css/order-hardware.css
+++ b/static/css/order-hardware.css
@@ -8,6 +8,10 @@
z-index: 10;
}
+.feedback-add-success {
+ display: none;
+}
+
/*
##Device = Tablets, Ipads (portrait)
##Screen = B/w 768px to 1024px
@@ -171,6 +175,19 @@
##Screen = B/w 481px to 767px
*/
@media (min-width: 481px) and (max-width: 767px) {
+ .feedback-add-success {
+ background-color: green;
+ display: block;
+ position: fixed;
+ top: 20px;
+ right: 20px;
+ padding: 1em;
+ z-index: 100000;
+ color: white;
+ border-radius: 10px;
+ box-shadow: 0 0 5px 3px;
+ }
+
.dropdown-item {
font-size: .75em;
}
@@ -306,7 +323,7 @@
position: absolute;
height: 100%;
width: 100%;
- background-color: rgba(0, 0, 0, 0);
+ background-color: rgba(0, 0, 0, .3);
top: 0;
bottom: 0;
z-index: 10;
@@ -355,6 +372,19 @@
##Screen = B/w 320px to 479px
*/
@media (min-width: 320px) and (max-width: 480px) {
+ .feedback-add-success {
+ background-color: green;
+ display: block;
+ position: fixed;
+ top: 20px;
+ right: 20px;
+ padding: 1em;
+ z-index: 100000;
+ color: white;
+ border-radius: 10px;
+ box-shadow: 0 0 5px 3px;
+ }
+
.dropdown-item {
font-size: .75em;
}
@@ -409,7 +439,7 @@
position: absolute;
height: 100%;
width: 100%;
- background-color: rgba(0, 0, 0, 0);
+ background-color: rgba(0, 0, 0, .3);
top: 0;
bottom: 0;
}
diff --git a/static/js/shop.jsx b/static/js/shop.jsx
index 9f4550a..c63131a 100644
--- a/static/js/shop.jsx
+++ b/static/js/shop.jsx
@@ -137,6 +137,8 @@ class Layout extends React.PureComponent {
aside: PropTypes.any,
main: PropTypes.any,
mobileSideMenuShouldOpen: PropTypes.bool,
+ isMobile: PropTypes.bool,
+ newCardJustAdded: PropTypes.bool,
onClickToggleMobileSideMenu: PropTypes.func,
};
}
@@ -152,6 +154,8 @@ class Layout extends React.PureComponent {
aside,
main,
mobileSideMenuShouldOpen,
+ isMobile,
+ newCardJustAdded,
onClickToggleMobileSideMenu
} = this.props;
@@ -166,6 +170,12 @@ class Layout extends React.PureComponent {
)}
+ {isMobile && newCardJustAdded ? (
+
+ ✓ added
+
+ ) : null}
+
);
}
@@ -196,9 +206,9 @@ class ProductItem extends React.PureComponent {
this.handleOnClickAddItem = this.handleOnClickAddItem.bind(this);
}
- handleOnClickAddItem(index, e) {
+ handleOnClickAddItem(index, tap, e) {
if (this.props.onClickAddItem) {
- this.props.onClickAddItem(index);
+ this.props.onClickAddItem(index, tap);
}
e.preventDefault();
}
@@ -235,7 +245,7 @@ class ProductItem extends React.PureComponent {
-