Chore: Move usePlugins closer to roles pages

This commit is contained in:
Gustav Hansen 2023-08-11 15:42:03 +02:00
parent 910d480b1b
commit c696619b98
3 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@ import { useEffect } from 'react';
import { useNotification, useFetchClient, useAPIErrorHandler } from '@strapi/helper-plugin';
import { useQueries } from 'react-query';
import { cleanPermissions, getTrad } from '../utils';
import { cleanPermissions, getTrad } from '../../../utils';
export const usePlugins = () => {
const toggleNotification = useNotification();

View File

@ -27,9 +27,9 @@ import { useMutation } from 'react-query';
import { useHistory } from 'react-router-dom';
import UsersPermissions from '../../../components/UsersPermissions';
import { usePlugins } from '../../../hooks/usePlugins';
import getTrad from '../../../utils/getTrad';
import { createRoleSchema } from '../constants';
import { usePlugins } from '../hooks/usePlugins';
export const CreatePage = () => {
const { formatMessage } = useIntl();

View File

@ -29,9 +29,9 @@ import { useQuery, useMutation } from 'react-query';
import { useRouteMatch } from 'react-router-dom';
import UsersPermissions from '../../../components/UsersPermissions';
import { usePlugins } from '../../../hooks/usePlugins';
import getTrad from '../../../utils/getTrad';
import { createRoleSchema } from '../constants';
import { usePlugins } from '../hooks/usePlugins';
export const EditPage = () => {
const { formatMessage } = useIntl();