Skip to content

Commit 5fbc835

Browse files
committed
Code cleanups
1 parent 075f030 commit 5fbc835

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/App.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
/>

src/WebView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)