diff --git a/src/components/form-editor/form-editor.component.tsx b/src/components/form-editor/form-editor.component.tsx index 90162c13..2fbd2b1a 100644 --- a/src/components/form-editor/form-editor.component.tsx +++ b/src/components/form-editor/form-editor.component.tsx @@ -20,7 +20,6 @@ import { useParams } from 'react-router-dom'; import { type TFunction, useTranslation } from 'react-i18next'; import { ConfigurableLink, showModal, useConfig } from '@openmrs/esm-framework'; import type { IMarker } from 'react-ace'; -import type { FormSchema } from '@openmrs/esm-form-engine-lib'; import type { Schema } from '../../types'; import { useClobdata } from '../../hooks/useClobdata'; import { useForm } from '../../hooks/useForm'; @@ -143,7 +142,7 @@ const FormEditorContent: React.FC = ({ t }) => { }; const inputDummySchema = useCallback(() => { - const dummySchema: FormSchema = { + const dummySchema: typeof schema = { encounterType: '', name: 'Sample Form', processor: 'EncounterFormProcessor', @@ -183,18 +182,15 @@ const FormEditorContent: React.FC = ({ t }) => { answers: [ { concept: 'another-system-defined-concept-uuid', - label: 'Choice 1', - conceptMappings: [], + label: 'Choice 1' }, { concept: 'yet-another-system-defined-concept-uuid', - label: 'Choice 2', - conceptMappings: [], + label: 'Choice 2' }, { concept: 'yet-one-more-system-defined-concept-uuid', - label: 'Choice 3', - conceptMappings: [], + label: 'Choice 3' }, ], }, diff --git a/src/components/interactive-builder/interactive-builder.component.tsx b/src/components/interactive-builder/interactive-builder.component.tsx index f2de0241..73c46e5b 100644 --- a/src/components/interactive-builder/interactive-builder.component.tsx +++ b/src/components/interactive-builder/interactive-builder.component.tsx @@ -6,7 +6,6 @@ import { Accordion, AccordionItem, Button, IconButton, InlineLoading } from '@ca import { Add, TrashCan } from '@carbon/react/icons'; import { useParams } from 'react-router-dom'; import { showModal, showSnackbar } from '@openmrs/esm-framework'; -import type { FormSchema } from '@openmrs/esm-form-engine-lib'; import type { Schema, Question } from '../../types'; import DraggableQuestion from './draggable-question.component'; import Droppable from './droppable-container.component'; @@ -45,7 +44,7 @@ const InteractiveBuilder: React.FC = ({ const isEditingExistingForm = Boolean(formUuid); const initializeSchema = useCallback(() => { - const dummySchema: FormSchema = { + const dummySchema: typeof schema = { name: '', pages: [], processor: 'EncounterFormProcessor',