Skip to content

Commit

Permalink
fix: update to Strapi 4.19+
Browse files Browse the repository at this point in the history
  • Loading branch information
cyp3rius committed Feb 12, 2024
1 parent 1b18125 commit ccf109b
Show file tree
Hide file tree
Showing 5 changed files with 1,022 additions and 726 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ In our minimum support we're following [official Node.js releases timelines](htt

**Supported Strapi versions**:

- Strapi v4.15.x (recently tested)
- Strapi v4.20.x (recently tested)
- Strapi v4.x

**Plugin dependencies**
Expand Down
17 changes: 5 additions & 12 deletions admin/src/pages/Settings/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useMemo, useState } from "react";
import React, { useState } from "react";
import { Id } from "strapi-typed";
import { isNil } from "lodash";

Expand Down Expand Up @@ -49,19 +49,12 @@ const Settings = () => {
const toggleNotification = useNotification();
const { lockApp, unlockApp } = useOverlayBlocker();

const viewPermissions = useMemo(
() => ({
access: pluginPermissions.settings,
change: pluginPermissions.settingsChange,
admin: pluginPermissions.settingsAdmin,
}),
[]
);

const {
isLoading: isLoadingForPermissions,
allowedActions: { canChange, canAdmin },
} = useRBAC(viewPermissions);
allowedActions,
} = useRBAC(pluginPermissions);

const { canSettingsChange: canChange, canSettingsAdmin: canAdmin } = allowedActions;

const [isModalOpened, setModalOpened] = useState(false);
const [syncAssiciationConfirmationVisible, setSyncAssiciationConfirmationVisible] = useState(false);
Expand Down
2 changes: 1 addition & 1 deletion admin/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"page.settings.action.sync-associations.description": "Perform synchronization of reactions associations to make the search keys be up-to-date",
"page.settings.action.sync-associations.tip": "We recommend to do this after you import / export a set of a data what might affect relations mapping",
"page.settings.action.sync-associations.button": "Synchronize now",
"page.settings.table.action.add": "Add another relation",
"page.settings.table.action.add": "Add another reaction",
"page.settings.table.action.edit": "Edit",
"page.settings.table.action.delete": "Delete",
"page.settings.table.headers.icon": "Icon",
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "strapi-plugin-reactions",
"version": "1.1.3",
"version": "1.1.4",
"description": "Strapi - Reactions plugin",
"strapi": {
"name": "reactions",
Expand All @@ -9,22 +9,22 @@
"kind": "plugin"
},
"dependencies": {
"@strapi/design-system": "^1.13.1",
"@strapi/helper-plugin": "^4.15.4",
"@strapi/icons": "^1.13.1",
"@strapi/plugin-graphql": "^4.15.4",
"@strapi/design-system": "1.14.1",
"@strapi/helper-plugin": "^4.20.0",
"@strapi/icons": "1.14.1",
"@strapi/plugin-graphql": "^4.20.0",
"emoji-picker-react": "^4.5.2",
"prop-types": "^15.8.1",
"slugify": "^1.6.6",
"qs": "^6.11.2"
},
"devDependencies": {
"@strapi/typescript-utils": "^4.15.4",
"@strapi/typescript-utils": "^4.20.0",
"@types/jest": "^29.4.0",
"@types/react": "^17.0.53",
"@types/react-dom": "^18.0.28",
"@types/react-router-dom": "^5.3.3",
"@strapi/strapi": "^4.15.4",
"@strapi/strapi": "^4.20.0",
"@types/styled-components": "^5.1.26",
"husky": "7.0.4",
"jest": "^29.4.3",
Expand Down
Loading

0 comments on commit ccf109b

Please sign in to comment.