File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { CSSProperties , memo } from 'react'
22
3- import { Provider } from '../../types'
43import useProvider from '../../hooks/useProvider'
54import useChat from '../../hooks/useChat'
65
@@ -26,7 +25,6 @@ const styles: CSSProperties = {
2625}
2726
2827interface Props {
29- providerKey : Provider | undefined
3028 themeColor ?: string
3129 loggedInGreeting ?: string
3230 loggedOutGreeting ?: string
@@ -38,6 +36,10 @@ interface Props {
3836 color ?: string
3937}
4038
39+ interface ChatProps extends Props {
40+ providerKey : string
41+ }
42+
4143// eslint-disable-next-line react/display-name
4244const CustomerChat = memo (
4345 ( {
@@ -47,7 +49,7 @@ const CustomerChat = memo(
4749 loggedOutGreeting,
4850 greetingDialogDisplay,
4951 greetingDialogDelay
50- } : Props ) => {
52+ } : ChatProps ) => {
5153 const fields = {
5254 page_id : providerKey ,
5355 theme_color : color ,
You can’t perform that action at this time.
0 commit comments