diff --git a/static/js/shop.jsx b/static/js/shop.jsx
index df7f4de..083ccb8 100644
--- a/static/js/shop.jsx
+++ b/static/js/shop.jsx
@@ -142,6 +142,7 @@ class Layout extends React.PureComponent {
newCardJustAdded: PropTypes.bool,
onClickToggleMobileSideMenu: PropTypes.func,
onClickCloseRFQFeedback: PropTypes.func,
+ RFQBodyType: PropTypes.string,
};
}
@@ -161,6 +162,7 @@ class Layout extends React.PureComponent {
onClickToggleMobileSideMenu,
onClickCloseRFQFeedback,
showRFQFeedback,
+ RFQBodyType,
} = this.props;
return (
@@ -181,22 +183,38 @@ class Layout extends React.PureComponent {
) : null}
-
-
-
-
+
+
+
+
-
- We've received your request and will be in contact soon.
-
+ {RFQBodyType === 'email' ? (
+
-
-
+
+
+
+
+
+ We've received your request and will be in contact soon.
+
+
+
+
+
+
+
+ ) : null }
+
+
+
+
+
);
}
@@ -1582,7 +1600,12 @@ class Shop extends React.PureComponent {
body,
headers: {'X-MLABS-OH': 'rlebcleu'}
}).then(response => {
- this.setState({isProcessing: false, shouldShowRFQFeedback: true, isProcessingComplete: true});
+ this.setState({
+ isProcessing: false,
+ shouldShowRFQFeedback: true,
+ RFQBodyType: 'email',
+ isProcessingComplete: true,
+ });
}).catch(err => {
this.setState({isProcessing: false}, () => {
alert("We cannot receive your request. Try using the export by coping the configuration and send it to us at sales[at]m-labs.hk");
@@ -2004,6 +2027,7 @@ class Shop extends React.PureComponent {
newCardJustAdded,
isProcessing,
shouldShowRFQFeedback,
+ RFQBodyType,
isProcessingComplete,
} = this.state;
@@ -2014,6 +2038,7 @@ class Shop extends React.PureComponent {