diff --git a/src/packages/modules-classifications/correspondences/association/home.spec.jsx b/src/packages/modules-classifications/correspondences/association/home.spec.jsx index 50ef7a635..3fbd62667 100644 --- a/src/packages/modules-classifications/correspondences/association/home.spec.jsx +++ b/src/packages/modules-classifications/correspondences/association/home.spec.jsx @@ -1,6 +1,6 @@ -import * as associationUtils from '../../../modules-classifications/utils/correspondence/association'; import { locales } from '../../../tests-utils/default-values'; import { renderWithAppContext } from '../../../tests-utils/render'; +import * as associationUtils from '../../utils/correspondence/association'; import Home from './home'; describe('association-home', () => { diff --git a/src/packages/modules-classifications/routes/layout.tsx b/src/packages/modules-classifications/routes/layout.tsx index ac9e89e84..b46aacc25 100644 --- a/src/packages/modules-classifications/routes/layout.tsx +++ b/src/packages/modules-classifications/routes/layout.tsx @@ -1,7 +1,7 @@ import { Outlet } from 'react-router-dom'; -import Menu from '../../modules-classifications/menu'; import { useTheme } from '../../utils/hooks/useTheme'; +import Menu from '../menu'; export const Component = () => { useTheme('classifications'); diff --git a/src/packages/modules-concepts/collections/edition-creation/general.jsx b/src/packages/modules-concepts/collections/edition-creation/general.jsx index e44fcc283..e9069fea8 100644 --- a/src/packages/modules-concepts/collections/edition-creation/general.jsx +++ b/src/packages/modules-concepts/collections/edition-creation/general.jsx @@ -6,7 +6,7 @@ import { Row } from '@components/layout'; import { RequiredIcon } from '@components/required-icon'; import D, { D1, D2 } from '../../../deprecated-locales'; -import { fields as generalFields } from '../../../modules-concepts/collections/utils/general'; +import { fields as generalFields } from '../utils/general'; const handleFieldChange = (handleChange) => generalFields.reduce((handlers, fieldName) => { diff --git a/src/packages/modules-concepts/collections/edition-creation/general.spec.jsx b/src/packages/modules-concepts/collections/edition-creation/general.spec.jsx index b003f6759..26a956d93 100644 --- a/src/packages/modules-concepts/collections/edition-creation/general.spec.jsx +++ b/src/packages/modules-concepts/collections/edition-creation/general.spec.jsx @@ -1,7 +1,7 @@ import { render } from '@testing-library/react'; -import { empty } from '../../../modules-concepts/collections/utils/general'; import { locales } from '../../../tests-utils/default-values'; +import { empty } from '../utils/general'; import CollectionGeneral from './general'; vi.mock('@components/form/input', () => ({ TextInput: () => <>> })); diff --git a/src/packages/modules-concepts/collections/edition/members.jsx b/src/packages/modules-concepts/collections/edition/members.jsx index d1aa53c2a..7a7927349 100644 --- a/src/packages/modules-concepts/collections/edition/members.jsx +++ b/src/packages/modules-concepts/collections/edition/members.jsx @@ -11,7 +11,7 @@ import { PickerItem } from '@components/picker-item'; import { arrayDifferenceByID, filterDeburr } from '@utils/array-utils'; import MainDictonary from '../../../deprecated-locales'; -import { D1 } from '../../../modules-concepts/i18n'; +import { D1 } from '../../i18n'; const extractMembers = (concepts) => { return concepts.reduce((members, { id, label, isAdded }) => { diff --git a/src/packages/modules-concepts/edition-creation/creation-container.jsx b/src/packages/modules-concepts/edition-creation/creation-container.jsx index db757ccb2..72240f6f8 100644 --- a/src/packages/modules-concepts/edition-creation/creation-container.jsx +++ b/src/packages/modules-concepts/edition-creation/creation-container.jsx @@ -5,11 +5,11 @@ import { Loading, Saving } from '@components/loading'; import { useAppContext } from '../../application/app-context'; import D from '../../deprecated-locales'; -import buildPayloadCreation from '../../modules-concepts/utils/build-payload-creation-update/build-payload-creation'; -import emptyConcept from '../../modules-concepts/utils/empty-concept'; import { ConceptsApi } from '../../sdk'; import { sortArrayByLabel } from '../../utils/array-utils'; import { useTitle } from '../../utils/hooks/useTitle'; +import buildPayloadCreation from '../utils/build-payload-creation-update/build-payload-creation'; +import emptyConcept from '../utils/empty-concept'; import { mergeWithAllConcepts } from '../utils/links'; import ConceptEditionCreation from './home'; diff --git a/src/packages/modules-concepts/edition-creation/edition-container.jsx b/src/packages/modules-concepts/edition-creation/edition-container.jsx index 8dd7686a6..be16727f7 100644 --- a/src/packages/modules-concepts/edition-creation/edition-container.jsx +++ b/src/packages/modules-concepts/edition-creation/edition-container.jsx @@ -7,11 +7,11 @@ import { CLOSE_MATCH } from '@sdk/constants'; import { useAppContext } from '../../application/app-context'; import D from '../../deprecated-locales'; -import buildPayloadUpdate from '../../modules-concepts/utils/build-payload-creation-update/build-payload-update'; -import * as generalUtils from '../../modules-concepts/utils/general'; import { ConceptsApi } from '../../sdk'; import { useTitle } from '../../utils/hooks/useTitle'; import { rmesHtmlToRawHtml } from '../../utils/html-utils'; +import buildPayloadUpdate from '../utils/build-payload-creation-update/build-payload-update'; +import * as generalUtils from '../utils/general'; import { mergeWithAllConcepts } from '../utils/links'; import { emptyNotes } from '../utils/notes'; import ConceptEditionCreation from './home'; diff --git a/src/packages/modules-operations/document/edition/index.jsx b/src/packages/modules-operations/document/edition/index.jsx index 55bc93a5e..66cceafb6 100644 --- a/src/packages/modules-operations/document/edition/index.jsx +++ b/src/packages/modules-operations/document/edition/index.jsx @@ -7,7 +7,7 @@ import { GeneralApi } from '@sdk/general-api'; import { useCodesList } from '@utils/hooks/codeslist'; -import DocumentationEdition from '../../../modules-operations/document/edition/edition'; +import DocumentationEdition from './edition'; export const Component = (props) => { const { id } = useParams(); diff --git a/src/packages/modules-operations/families/edition/index.spec.tsx b/src/packages/modules-operations/families/edition/index.spec.tsx index 873733436..22cedecdb 100644 --- a/src/packages/modules-operations/families/edition/index.spec.tsx +++ b/src/packages/modules-operations/families/edition/index.spec.tsx @@ -31,7 +31,7 @@ vi.mock('@components/loading', () => ({ Loading: () =>