File tree 4 files changed +4
-16
lines changed
packages/botonic-react/src
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -33,25 +33,13 @@ export const COLORS = {
33
33
34
34
export const WEBCHAT = {
35
35
DEFAULTS : {
36
- WIDTH : 300 ,
37
- HEIGHT : 450 ,
38
- TITLE : 'Botonic' ,
39
36
LOGO : BotonicLogo ,
40
37
URL_ICON : UrlIcon ,
41
- PLACEHOLDER : 'Ask me something...' ,
42
- FONT_FAMILY : "'Noto Sans JP', sans-serif" ,
43
- BORDER_RADIUS_TOP_CORNERS : '6px 6px 0px 0px' ,
44
38
ELEMENT_WIDTH : 222 ,
45
39
ELEMENT_MARGIN_RIGHT : 6 ,
46
40
STORAGE_KEY : 'botonicState' ,
47
41
HOST_ID : 'root' ,
48
42
ID : 'botonic-webchat' ,
49
- BUTTON_AUTO_DISABLE : false ,
50
- BUTTON_DISABLED_STYLE : {
51
- opacity : 0.5 ,
52
- cursor : 'auto' ,
53
- pointerEvents : 'none' ,
54
- } ,
55
43
} ,
56
44
CUSTOM_PROPERTIES : {
57
45
// General
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ export class WebchatApp {
71
71
enableAttachments,
72
72
enableUserInput,
73
73
enableAnimations,
74
- hostId = 'root' ,
74
+ hostId = WEBCHAT . DEFAULTS . HOST_ID ,
75
75
shadowDOM = false ,
76
76
defaultDelay,
77
77
defaultTyping,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ export const ErrorMessage = styled.div`
49
49
border-radius: 5px;
50
50
align-items: center;
51
51
justify-content: center;
52
- font-family: ${ WEBCHAT . DEFAULTS . FONT_FAMILY } ;
52
+ font-family: ${ props => props . theme . style . fontFamily } ;
53
53
`
54
54
55
55
export const DarkBackgroundMenu = styled . div `
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ export const defaultTheme: WebchatTheme = {
6
6
width : '300px' ,
7
7
height : '450px' ,
8
8
borderRadius : '10px' ,
9
- fontFamily : WEBCHAT . DEFAULTS . FONT_FAMILY ,
9
+ fontFamily : "'Noto Sans JP', sans-serif" ,
10
10
fontSize : '16px' ,
11
11
position : 'fixed' ,
12
12
right : '20px' ,
@@ -25,7 +25,7 @@ export const defaultTheme: WebchatTheme = {
25
25
bottom : '0px' ,
26
26
} ,
27
27
header : {
28
- title : WEBCHAT . DEFAULTS . TITLE ,
28
+ title : 'Botonic' ,
29
29
subtitle : '' ,
30
30
image : WEBCHAT . DEFAULTS . LOGO ,
31
31
style : {
You can’t perform that action at this time.
0 commit comments