File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
packages/react-sdk-components/src/samples/Embedded/MainScreen Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { makeStyles } from '@mui/styles';
55import StoreContext from '../../../bridge/Context/StoreContext' ;
66import createPConnectComponent from '../../../bridge/react_pconnect' ;
77
8+ import sdkConfigData from '../../../../../../sdk-config.json' ;
89import ShoppingOptionCard from '../ShoppingOptionCard' ;
910import ResolutionScreen from '../ResolutionScreen' ;
1011import { 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 = '' ;
Original file line number Diff line number Diff line change 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
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" : {
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments