@woosmap/ui 4.0.101 → 4.0.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.0.101",
3
+ "version": "4.0.103",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import PropTypes from 'prop-types';
2
3
  import Button from '../Button/Button';
3
4
  import { tr } from '../utils/locale';
4
5
  import Picto from '../../images/offlinechat/sf-chat.png';
@@ -16,6 +17,7 @@ class OfflineChatBot extends React.Component {
16
17
  };
17
18
 
18
19
  render() {
20
+ const { iframeBaseUrl } = this.props;
19
21
  const { open } = this.state;
20
22
  const title = tr('Chat with us');
21
23
  return (
@@ -48,7 +50,7 @@ class OfflineChatBot extends React.Component {
48
50
  <iframe
49
51
  title="support-iframe"
50
52
  id="support_iframe"
51
- src="https://www.woosmap.com/support_xs.html"
53
+ src={`${iframeBaseUrl}/support_xs.html?retUrl=${iframeBaseUrl}/support_closed.html`}
52
54
  />
53
55
  </div>
54
56
  </div>
@@ -57,4 +59,8 @@ class OfflineChatBot extends React.Component {
57
59
  }
58
60
  }
59
61
 
62
+ OfflineChatBot.propTypes = {
63
+ iframeBaseUrl: PropTypes.string.isRequired,
64
+ };
65
+
60
66
  export default OfflineChatBot;