diff --git a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigSequenceFlow/ConfigSequenceFlow.tsx b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigSequenceFlow/ConfigSequenceFlow.tsx index e2343dab2dd..4d888b84aa9 100644 --- a/frontend/packages/process-editor/src/components/ConfigPanel/ConfigSequenceFlow/ConfigSequenceFlow.tsx +++ b/frontend/packages/process-editor/src/components/ConfigPanel/ConfigSequenceFlow/ConfigSequenceFlow.tsx @@ -10,7 +10,7 @@ import { PlusIcon } from '@studio/icons'; import { useBpmnContext } from '../../../contexts/BpmnContext'; import { Paragraph } from '@digdir/designsystemet-react'; import { BpmnExpressionModeler } from '../../../utils/bpmnModeler/BpmnExpressionModeler'; -import { useExpressionTexts } from 'app-shared/components/Expression/useExpressionTexts'; +import { useExpressionTexts } from 'app-shared/hooks/useExpressionTexts'; import { useTranslation } from 'react-i18next'; import classes from './ConfigSequenceFlow.module.css'; import { ConfigIcon } from '../../../components/ConfigPanel/ConfigContent/ConfigIcon'; diff --git a/frontend/packages/shared/src/components/Expression/useExpressionTexts.ts b/frontend/packages/shared/src/hooks/useExpressionTexts.ts similarity index 100% rename from frontend/packages/shared/src/components/Expression/useExpressionTexts.ts rename to frontend/packages/shared/src/hooks/useExpressionTexts.ts diff --git a/frontend/packages/shared/src/components/Expression/Expression.tsx b/frontend/packages/ux-editor/src/components/config/ExpressionContent/Expression/Expression.tsx similarity index 83% rename from frontend/packages/shared/src/components/Expression/Expression.tsx rename to frontend/packages/ux-editor/src/components/config/ExpressionContent/Expression/Expression.tsx index 54945d45dc0..4fa95ab2895 100644 --- a/frontend/packages/shared/src/components/Expression/Expression.tsx +++ b/frontend/packages/ux-editor/src/components/config/ExpressionContent/Expression/Expression.tsx @@ -1,7 +1,7 @@ import React from 'react'; import type { StudioExpressionProps } from '@studio/components'; import { StudioExpression } from '@studio/components'; -import { useExpressionTexts } from './useExpressionTexts'; +import { useExpressionTexts } from 'app-shared/hooks/useExpressionTexts'; export type ExpressionProps = Omit; diff --git a/frontend/packages/shared/src/components/Expression/index.ts b/frontend/packages/ux-editor/src/components/config/ExpressionContent/Expression/index.ts similarity index 100% rename from frontend/packages/shared/src/components/Expression/index.ts rename to frontend/packages/ux-editor/src/components/config/ExpressionContent/Expression/index.ts diff --git a/frontend/packages/ux-editor/src/components/config/ExpressionContent/ExpressionContent.tsx b/frontend/packages/ux-editor/src/components/config/ExpressionContent/ExpressionContent.tsx index 5c1e240ea14..4d0eef78fd8 100644 --- a/frontend/packages/ux-editor/src/components/config/ExpressionContent/ExpressionContent.tsx +++ b/frontend/packages/ux-editor/src/components/config/ExpressionContent/ExpressionContent.tsx @@ -8,7 +8,7 @@ import { useStudioEnvironmentParams } from 'app-shared/hooks/useStudioEnvironmen import { useDataModelMetadataQuery } from '../../../hooks/queries/useDataModelMetadataQuery'; import { Paragraph } from '@digdir/designsystemet-react'; import classes from './ExpressionContent.module.css'; -import { Expression as ExpressionWithTexts } from 'app-shared/components/Expression'; +import { Expression as ExpressionWithTexts } from './Expression'; import { useText, useAppContext } from '../../../hooks'; export interface ExpressionContentProps {