diff --git a/package.json b/package.json index 645f0210..79d4cca2 100644 --- a/package.json +++ b/package.json @@ -169,10 +169,10 @@ "@babel/plugin-transform-runtime": "^7.13.10", "@folio/eslint-config-stripes": "^7.0.0", "@folio/jest-config-stripes": "^2.0.0", - "@folio/stripes": "^9.0.0", + "@folio/stripes": "^9.2.5", "@folio/stripes-cli": "^3.0.0", "@folio/stripes-components": "^12.0.0", - "@folio/stripes-core": "^10.0.0", + "@folio/stripes-core": "^10.2.3", "@folio/stripes-testing": "^4.4.0", "@formatjs/cli": "^6.1.3", "core-js": "^3.6.4", @@ -202,7 +202,7 @@ "react-to-print": "^2.9.0" }, "peerDependencies": { - "@folio/stripes": "^9.0.0", + "@folio/stripes": "^9.2.5", "react": "^18.2.0", "react-dom": "^18.2.0", "react-intl": "^6.4.4", diff --git a/src/PatronBlockModal.js b/src/PatronBlockModal.js index 1f28dc41..9262f71f 100644 --- a/src/PatronBlockModal.js +++ b/src/PatronBlockModal.js @@ -8,7 +8,7 @@ import { Modal, Row } from '@folio/stripes/components'; -import { IfPermission } from '@folio/stripes/core'; +import { IfAnyPermission } from '@folio/stripes/core'; const PatronBlockModal = ({ open, @@ -55,14 +55,14 @@ const PatronBlockModal = ({ - + - + diff --git a/test/jest/__mock__/stripesCore.mock.js b/test/jest/__mock__/stripesCore.mock.js index a7f2092e..9b275dff 100644 --- a/test/jest/__mock__/stripesCore.mock.js +++ b/test/jest/__mock__/stripesCore.mock.js @@ -46,6 +46,7 @@ jest.mock('@folio/stripes/core', () => ({ ); }), IfPermission: jest.fn(({ children }) =>
{children}
), + IfAnyPermission: jest.fn(({ children }) =>
{children}
), TitleManager: jest.fn(jest.fn(() => null)), AppIcon: jest.fn(({ children }) =>
{children}
), }));