diff --git a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/SelectedSchemaEditor.tsx b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/SelectedSchemaEditor.tsx index 7059ac93b0b..ae817cd8fde 100644 --- a/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/SelectedSchemaEditor.tsx +++ b/frontend/app-development/features/dataModelling/SchemaEditorWithToolbar/SelectedSchemaEditor.tsx @@ -7,7 +7,7 @@ import { SchemaEditorApp } from '@altinn/schema-editor/SchemaEditorApp'; import { useTranslation } from 'react-i18next'; import { AUTOSAVE_DEBOUNCE_INTERVAL_MILLISECONDS } from 'app-shared/constants'; import type { JsonSchema } from 'app-shared/types/JsonSchema'; -import { useOnUnmount } from 'app-shared/hooks/useOnUnmount'; +import { useOnUnmount } from '../hooks/useOnUnmount'; import type { DataModelMetadataJson, DataModelMetadataXsd, diff --git a/frontend/packages/shared/src/hooks/useOnUnmount.test.tsx b/frontend/app-development/features/dataModelling/hooks/useOnUnmount.test.tsx similarity index 100% rename from frontend/packages/shared/src/hooks/useOnUnmount.test.tsx rename to frontend/app-development/features/dataModelling/hooks/useOnUnmount.test.tsx diff --git a/frontend/packages/shared/src/hooks/useOnUnmount.ts b/frontend/app-development/features/dataModelling/hooks/useOnUnmount.ts similarity index 100% rename from frontend/packages/shared/src/hooks/useOnUnmount.ts rename to frontend/app-development/features/dataModelling/hooks/useOnUnmount.ts