Skip to content

Commit 141dadd

Browse files
committed
sdk config fix
1 parent d726d7c commit 141dadd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/react-sdk-components/src/theme.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,7 @@ const darkTheme = createTheme({
257257
}
258258
});
259259

260+
const sdkConfig = await getSdkConfig();
261+
260262
// eslint-disable-next-line import/prefer-default-export
261-
export const theme = getSdkConfig().theme === 'dark' ? darkTheme : lightTheme;
263+
export const theme = sdkConfig.theme === 'dark' ? darkTheme : lightTheme;

sdk-config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"comment_sdk_config": "This is the configuration file for the React SDK Components",
33
"sdk_optional_configs_doc_comment": "See the document(link below) for more details on all the available config settings",
44
"sdk_optional_configs_doc": "https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/configuring-sdk-config-json.html",
5-
"theme": "dark",
5+
"theme": "light",
66
"authConfig": {
77
"authService": "pega",
88

0 commit comments

Comments
 (0)