Skip to content

Commit 50f82c0

Browse files
committed
refactor: package updates for 25.1 release
1 parent 83f4e82 commit 50f82c0

File tree

6 files changed

+11
-13
lines changed

6 files changed

+11
-13
lines changed

.prettierrc.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// Prettier config options: https://prettier.io/docs/en/options.html
22
// Shared front-end config: https://git.pega.io/projects/FE/repos/configs/browse/packages/prettier-config/index.json
33

4-
const pegaPrettierConfig = require('@pega/prettier-config');
5-
6-
module.exports = {
7-
...pegaPrettierConfig,
4+
module.exports = import('@pega/prettier-config').then(pegaPrettierConfig => ({
5+
...pegaPrettierConfig.default,
86
printWidth: 150
9-
};
7+
}));

packages/react-sdk-components/src/components/field/CancelAlert/CancelAlert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default function CancelAlert(props: CancelAlertProps) {
7878
});
7979
} else if (isLocalAction) {
8080
dismiss(true);
81-
actionsAPI.cancelAssignment(containerItemID,false);
81+
actionsAPI.cancelAssignment(containerItemID, false);
8282
} else if (isBulkAction) {
8383
dismiss(true);
8484
actionsAPI.cancelBulkAction(containerItemID);

packages/react-sdk-components/src/components/helpers/simpleTableHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export const filterData = filterByColumns => {
231231
case 'Date':
232232
case 'DateTime':
233233
case 'Time':
234-
value = (item[filterObj.ref] !== null || item[filterObj.ref] !== '') ? Utils.getSeconds(item[filterObj.ref]) : null;
234+
value = item[filterObj.ref] !== null || item[filterObj.ref] !== '' ? Utils.getSeconds(item[filterObj.ref]) : null;
235235
filterValue =
236236
filterObj.containsFilterValue !== null && filterObj.containsFilterValue !== '' ? Utils.getSeconds(filterObj.containsFilterValue) : null;
237237

packages/react-sdk-components/src/components/infra/Assignment/Assignment.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
147147
}
148148

149149
function onSaveActionSuccess(data) {
150-
actionsAPI.cancelAssignment(itemKey,false).then(() => {
150+
actionsAPI.cancelAssignment(itemKey, false).then(() => {
151151
PCore.getPubSubUtils().publish(PCore.getConstants().PUB_SUB_EVENTS.CASE_EVENTS.CREATE_STAGE_SAVED, data);
152152
});
153153
}
@@ -206,7 +206,7 @@ export default function Assignment(props: PropsWithChildren<AssignmentProps>) {
206206
showToast(`${localizedVal('Cancel failed!', localeCategory)}`);
207207
});
208208
} else {
209-
const cancelPromise = cancelAssignment(itemKey,false);
209+
const cancelPromise = cancelAssignment(itemKey, false);
210210

211211
cancelPromise
212212
.then(data => {

packages/react-sdk-components/src/components/infra/NavBar/NavBar.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default function NavBar(props: NavBarProps) {
223223
</div>
224224
)}
225225
<List>
226-
<ListItem component="button" onClick={handleCaseItemClick}>
226+
<ListItem component='button' onClick={handleCaseItemClick}>
227227
<ListItemIcon>{bShowCaseTypes && open ? <ClearOutlinedIcon fontSize='large' /> : <AddIcon fontSize='large' />}</ListItemIcon>
228228
<ListItemText primary='Create' />
229229
{bShowCaseTypes ? <ExpandLess /> : <ExpandMore />}
@@ -233,7 +233,7 @@ export default function NavBar(props: NavBarProps) {
233233
<List component='div' disablePadding>
234234
{caseTypes.map(caseType => (
235235
<ListItem
236-
component="button"
236+
component='button'
237237
className={classes.nested}
238238
onClick={() => navPanelCreateCaseType(caseType.pyClassName, caseType.pyFlowType)}
239239
key={caseType.pyLabel}
@@ -248,7 +248,7 @@ export default function NavBar(props: NavBarProps) {
248248
</Collapse>
249249
<List>
250250
{navPages.map(page => (
251-
<ListItem component="button" onClick={() => navPanelButtonClick(page)} key={page.pyLabel}>
251+
<ListItem component='button' onClick={() => navPanelButtonClick(page)} key={page.pyLabel}>
252252
<ListItemIcon>{iconMap[page.pxPageViewIcon]}</ListItemIcon>
253253
<ListItemText primary={localeUtils.getLocaleValue(page.pyLabel, '', localeReference)} />
254254
</ListItem>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { Theme } from '@mui/material/styles';
66
* you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core.
77
*/
88
declare module '@mui/styles/defaultTheme' {
9-
interface DefaultTheme extends Theme { }
9+
interface DefaultTheme extends Theme {}
1010
}
1111

1212
// eslint-disable-next-line import/prefer-default-export

0 commit comments

Comments
 (0)