-
Notifications
You must be signed in to change notification settings - Fork 7
fix: header theme changes in embedded sample #510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
80a910c
a20cd37
dcb3705
8d9de0f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,6 +5,7 @@ import { makeStyles } from '@mui/styles'; | |
| import StoreContext from '../../../bridge/Context/StoreContext'; | ||
| import createPConnectComponent from '../../../bridge/react_pconnect'; | ||
|
|
||
| import sdkConfigData from '../../../../../../sdk-config.json'; | ||
| import ShoppingOptionCard from '../ShoppingOptionCard'; | ||
| import ResolutionScreen from '../ResolutionScreen'; | ||
| import { shoppingOptions } from '../utils'; | ||
|
|
@@ -164,8 +165,7 @@ export default function MainScreen(props) { | |
| if (!mashupCaseType) { | ||
| const caseTypes = PCore.getEnvironmentInfo()?.environmentInfoObject?.pyCaseTypeList; | ||
| if (caseTypes && caseTypes.length > 0) { | ||
| //mashupCaseType = caseTypes[0].pyWorkTypeImplementationClassName; | ||
| mashupCaseType = 'DIXL-MediaCo-Work-PurchasePhone'; | ||
| mashupCaseType = sdkConfigData.authConfig.mashupCaseType; | ||
| } | ||
|
Comment on lines
166
to
168
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to modify this logic, it should be like below one |
||
| } | ||
| let selectedPhoneGUID = ''; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
| "comment_sdk_config": "This is the configuration file for the React SDK Components", | ||
| "sdk_optional_configs_doc_comment": "See the document(link below) for more details on all the available config settings", | ||
| "sdk_optional_configs_doc": "https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/configuring-sdk-config-json.html", | ||
| "theme": "light", | ||
| "theme": "dark", | ||
|
||
| "authConfig": { | ||
| "authService": "pega", | ||
|
|
||
|
|
@@ -14,7 +14,8 @@ | |
| "mashupPassword": "", | ||
|
|
||
| "portalClientId_comment": "Client ID from the OAuth 2.0 Client Registration record used for portal use case", | ||
| "portalClientId": "25795373220702300272" | ||
| "portalClientId": "25795373220702300272", | ||
| "mashupCaseType": "DIXL-MediaCo-Work-PurchasePhone" | ||
|
||
| }, | ||
|
|
||
| "serverConfig": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,7 @@ | |
| "allowJs": true, // must be false for @pega/pcore-pconnect-typedefs | ||
| "noImplicitAny": false, | ||
| "allowSyntheticDefaultImports": true, | ||
| "resolveJsonModule": true, | ||
|
||
| // End of copied from SDK-R | ||
|
|
||
| // Need to add this to remove errors of .js files trying to compile to the same path | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this import