File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const propTypes = {
1919 identifier_hash : PropTypes . string ,
2020 } ) ,
2121 locale : PropTypes . string ,
22- theme : PropTypes . string ,
22+ colorScheme : PropTypes . oneOfType ( [ 'dark' , 'light' , 'auto' ] ) ,
2323 customAttributes : PropTypes . shape ( { } ) ,
2424 closeModal : PropTypes . func ,
2525} ;
@@ -28,7 +28,7 @@ const defaultProps = {
2828 cwCookie : '' ,
2929 user : { } ,
3030 locale : 'en' ,
31- theme : 'light' ,
31+ colorScheme : 'light' ,
3232 customAttributes : { } ,
3333} ;
3434
@@ -38,7 +38,7 @@ const ChatWootWidget = ({
3838 websiteToken,
3939 user,
4040 locale,
41- theme ,
41+ colorScheme ,
4242 customAttributes,
4343 closeModal,
4444} ) => {
@@ -67,7 +67,7 @@ const ChatWootWidget = ({
6767 user = { user }
6868 baseUrl = { baseUrl }
6969 locale = { locale }
70- theme = { theme }
70+ colorScheme = { colorScheme }
7171 customAttributes = { customAttributes }
7272 closeModal = { closeModal }
7373 />
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const propTypes = {
77 websiteToken : PropTypes . string . isRequired ,
88 baseUrl : PropTypes . string . isRequired ,
99 cwCookie : PropTypes . string ,
10- colorScheme : PropTypes . string ,
10+ colorScheme : PropTypes . oneOfType ( [ 'dark' , 'light' , 'auto' ] ) ,
1111 user : PropTypes . shape ( {
1212 name : PropTypes . string ,
1313 avatar_url : PropTypes . string ,
You can’t perform that action at this time.
0 commit comments