Skip to content

Commit a20cd37

Browse files
committed
Added casetype in sdk-config for embedded and updated styles for Header
1 parent 80a910c commit a20cd37

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

packages/react-sdk-components/src/samples/Embedded/MainScreen/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { makeStyles } from '@mui/styles';
55
import StoreContext from '../../../bridge/Context/StoreContext';
66
import createPConnectComponent from '../../../bridge/react_pconnect';
77

8+
import sdkConfigData from '../../../../../../sdk-config.json';
89
import ShoppingOptionCard from '../ShoppingOptionCard';
910
import ResolutionScreen from '../ResolutionScreen';
1011
import { shoppingOptions } from '../utils';
@@ -164,8 +165,7 @@ export default function MainScreen(props) {
164165
if (!mashupCaseType) {
165166
const caseTypes = PCore.getEnvironmentInfo()?.environmentInfoObject?.pyCaseTypeList;
166167
if (caseTypes && caseTypes.length > 0) {
167-
//mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName;
168-
mashupCaseType = 'DIXL-MediaCo-Work-PurchasePhone';
168+
mashupCaseType = sdkConfigData.authConfig.mashupCaseType;
169169
}
170170
}
171171
let selectedPhoneGUID = '';

sdk-config.json

Lines changed: 3 additions & 2 deletions
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": "light",
5+
"theme": "dark",
66
"authConfig": {
77
"authService": "pega",
88

@@ -14,7 +14,8 @@
1414
"mashupPassword": "",
1515

1616
"portalClientId_comment": "Client ID from the OAuth 2.0 Client Registration record used for portal use case",
17-
"portalClientId": "25795373220702300272"
17+
"portalClientId": "25795373220702300272",
18+
"mashupCaseType": "DIXL-MediaCo-Work-PurchasePhone"
1819
},
1920

2021
"serverConfig": {

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"allowJs": true, // must be false for @pega/pcore-pconnect-typedefs
1616
"noImplicitAny": false,
1717
"allowSyntheticDefaultImports": true,
18+
"resolveJsonModule": true,
1819
// End of copied from SDK-R
1920

2021
// Need to add this to remove errors of .js files trying to compile to the same path

0 commit comments

Comments
 (0)