beem-component 1.7.0 → 1.7.1

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.
@@ -17,6 +17,8 @@ var _fb = _interopRequireDefault(require("../../assets/fb.png"));
17
17
 
18
18
  var _insta = _interopRequireDefault(require("../../assets/insta.png"));
19
19
 
20
+ var _Google_Messages_logo = _interopRequireDefault(require("../../assets/Google_Messages_logo.png"));
21
+
20
22
  var _excluded = ["img", "content", "channel", "size"];
21
23
 
22
24
  var _templateObject, _templateObject2, _templateObject3, _templateObject4;
@@ -95,6 +97,10 @@ var BmProfileIcon = function BmProfileIcon(_ref) {
95
97
  size: size,
96
98
  src: _insta.default,
97
99
  alt: "icon"
100
+ }), channel && channel === 'google_business_messaging' && /*#__PURE__*/_react.default.createElement(Dot, {
101
+ size: size,
102
+ src: _Google_Messages_logo.default,
103
+ alt: "icon"
98
104
  })));
99
105
  };
100
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beem-component",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "private": false,
5
5
  "main": "dist/components/index.js",
6
6
  "scripts": {
package/src/App.js CHANGED
@@ -4,7 +4,13 @@ import AttachFileIcon from '@mui/icons-material/AttachFile';
4
4
  import EmojiEmotionsIcon from '@mui/icons-material/EmojiEmotions';
5
5
  import SendIcon from '@mui/icons-material/Send';
6
6
  import QuickreplyIcon from '@mui/icons-material/Quickreply';
7
- import { BmChat, BmInput, BmIcons, GlobalStyle } from './lib/components';
7
+ import {
8
+ BmChat,
9
+ BmInput,
10
+ BmIcons,
11
+ GlobalStyle,
12
+ BmProfileIcon,
13
+ } from './lib/components';
8
14
 
9
15
  const Chat = () => {
10
16
  const image =
@@ -12,6 +18,7 @@ const Chat = () => {
12
18
  return (
13
19
  <>
14
20
  <GlobalStyle />
21
+ <BmProfileIcon channel="google_business_messaging" />
15
22
  <BmChat>
16
23
  <BmChat.Body>
17
24
  <BmChat.Details
@@ -4,6 +4,7 @@ import { BmSecondaryBlue12, BmBgLightBlue } from '../colors';
4
4
  import wa from '../../assets/wa.png';
5
5
  import fb from '../../assets/fb.png';
6
6
  import insta from '../../assets/insta.png';
7
+ import gbm from '../../assets/Google_Messages_logo.png';
7
8
 
8
9
  const handleSize = (size) => {
9
10
  if (size) {
@@ -76,6 +77,9 @@ export const BmProfileIcon = ({ img, content, channel, size, ...rest }) => {
76
77
  {channel && channel === 'instagram' && (
77
78
  <Dot size={size} src={insta} alt="icon" />
78
79
  )}
80
+ {channel && channel === 'google_business_messaging' && (
81
+ <Dot size={size} src={gbm} alt="icon" />
82
+ )}
79
83
  </Profile>
80
84
  </>
81
85
  );