From 239d06fd4ebf11be90aa49565617fa0296416cd7 Mon Sep 17 00:00:00 2001 From: William Thorenfeldt <48119543+wrt95@users.noreply.github.com> Date: Fri, 25 Oct 2024 08:55:38 +0200 Subject: [PATCH] chore: Move useOnUnmount to dataModelling (#13911) Co-authored-by: David Ovrelid <46874830+framitdavid@users.noreply.github.com> --- .../SchemaEditorWithToolbar/SelectedSchemaEditor.tsx | 2 +- .../features/dataModelling}/hooks/useOnUnmount.test.tsx | 0 .../features/dataModelling}/hooks/useOnUnmount.ts | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename frontend/{packages/shared/src => app-development/features/dataModelling}/hooks/useOnUnmount.test.tsx (100%) rename frontend/{packages/shared/src => app-development/features/dataModelling}/hooks/useOnUnmount.ts (100%) 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