Skip to content

Commit

Permalink
Rename BaseQuestionnaireResponseForm component (prev)
Browse files Browse the repository at this point in the history
Ref #66
  • Loading branch information
projkov committed May 31, 2024
1 parent 7d9bc32 commit 94bec42
Show file tree
Hide file tree
Showing 31 changed files with 7 additions and 212 deletions.
202 changes: 0 additions & 202 deletions web/src/components/BaseQuestionnaireResponseForm/index.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
ValueSet,
} from 'shared/src/contrib/aidbox';


export function getDisplay(value: AnswerValue): string {
const valueType = _.keys(value)[0];
//@ts-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { AsyncSelectField } from '../choice/select';
import { QuestionField } from '../field';
import { QuestionLabel } from '../label';


function QuestionReferenceUnsafe<R extends Resource = any, IR extends Resource = any>(
props: AnswerReferenceProps<R, IR>,
) {
Expand Down
9 changes: 4 additions & 5 deletions web/src/components/QRFormWrapper/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ import {
QuestionDisplay,
QuestionString,
Row,
} from '../BaseQuestionnaireResponseForm/components';
import { QuestionInteger } from '../BaseQuestionnaireResponseForm/components/integer';
import { QuestionReference } from '../BaseQuestionnaireResponseForm/components/reference';
import s from '../BaseQuestionnaireResponseForm/QuestionnaireResponseForm.module.scss';

QuestionInteger,
QuestionReference,
} from './components';
import s from './QuestionnaireResponseForm.module.scss';

interface QRFormWrapperProps {
questionnaireRD: RemoteData<FHIRQuestionnaire>;
Expand Down
2 changes: 1 addition & 1 deletion web/src/containers/Main/MappingEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { Mapping } from 'shared/src/contrib/aidbox';

import s from './MappingEditor.module.scss';
import { useMappingEditor } from './useMappingEditor';
import formStyles from '../../../components/BaseQuestionnaireResponseForm/QuestionnaireResponseForm.module.scss';
import formStyles from '../../../components/QRFormWrapper/QuestionnaireResponseForm.module.scss';
import { PromptForm } from '../PromptForm';

interface Props {
Expand Down
2 changes: 1 addition & 1 deletion web/src/containers/Main/PromptForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Button } from 'web/src/components/Button';

import { RemoteDataResult, isFailure, isSuccess } from 'fhir-react/lib/libs/remoteData';

import s from '../../../components/BaseQuestionnaireResponseForm/QuestionnaireResponseForm.module.scss';
import s from '../../../components/QRFormWrapper/QuestionnaireResponseForm.module.scss';

interface PromptFormInterface {
prompt: string;
Expand Down
2 changes: 1 addition & 1 deletion web/src/containers/Main/QuestionnaireEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { RemoteData, RemoteDataResult, isFailure, isLoading } from 'fhir-react/l

import s from './QuestionnaireEditor.module.scss';
import { useQuestionnaireEditor } from './useQuestionnaireEditor';
import formStyles from '../../../components/BaseQuestionnaireResponseForm/QuestionnaireResponseForm.module.scss';
import formStyles from '../../../components/QRFormWrapper/QuestionnaireResponseForm.module.scss';
import { PromptForm } from '../PromptForm';

interface Props {
Expand Down

0 comments on commit 94bec42

Please sign in to comment.