Skip to content

Commit 78112e2

Browse files
committed
Apply Intercom's color prop to correct element
1 parent 5a4b139 commit 78112e2

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/components/Intercom/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const styles: {
3434
maxHeight: '48px',
3535
height: '48px',
3636
borderRadius: '50%',
37-
background: '#333333',
3837
cursor: 'pointer',
3938
boxShadow:
4039
'0 1px 6px 0 rgba(0, 0, 0, 0.06), 0 2px 32px 0 rgba(0, 0, 0, 0.16)',
@@ -78,8 +77,7 @@ const Intercom = ({
7877
<div
7978
className={containerClass}
8079
style={{
81-
...styles.wrapper,
82-
background: color
80+
...styles.wrapper
8381
}}
8482
>
8583
<div
@@ -89,7 +87,10 @@ const Intercom = ({
8987
aria-live="polite"
9088
onClick={() => loadChat({ open: true })}
9189
onMouseEnter={() => loadChat({ open: false })}
92-
style={styles.launcher}
90+
style={{
91+
...styles.launcher,
92+
background: color
93+
}}
9394
>
9495
<div
9596
style={{

0 commit comments

Comments
 (0)