Skip to content

Commit

Permalink
(fix) O3-3906: ComposedModal usage missing scroll bar
Browse files Browse the repository at this point in the history
  • Loading branch information
IamMujuziMoses committed Sep 10, 2024
1 parent ebdf1b0 commit d861aba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
InlineNotification,
} from '@carbon/react';
import { useTranslation } from 'react-i18next';
import { type Location } from '@openmrs/esm-framework';
import { getCoreTranslation, type Location } from '@openmrs/esm-framework';
import type { BedType, BedFormData } from '../types';
import { type BedAdministrationData } from './bed-administration-types';

Expand Down Expand Up @@ -119,7 +119,7 @@ const BedAdministrationForm: React.FC<BedAdministrationFormProps> = ({
<ComposedModal open={showModal} onClose={() => onModalChange(false)} preventCloseOnClickOutside>
<ModalHeader title={headerTitle} />
<ModalBody hasScrollingContent>
<Form onSubmit={handleSubmit(onSubmit, onError)}>
<Form>
<Stack gap={3}>
<FormGroup legendText={''}>
<Controller
Expand Down Expand Up @@ -279,7 +279,7 @@ const BedAdministrationForm: React.FC<BedAdministrationFormProps> = ({
</ModalBody>
<ModalFooter>
<Button onClick={() => onModalChange(false)} kind="secondary">
{t('cancel', 'Cancel')}
{getCoreTranslation('cancel', 'Cancel')}
</Button>
<Button disabled={!isDirty} onClick={handleSubmit(onSubmit, onError)}>
<span>{t('save', 'Save')}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const BedTagsAdministrationForm: React.FC<BedTagAdministrationFormProps> = ({
<ComposedModal open={showModal} onClose={() => onModalChange(false)} preventCloseOnClickOutside>
<ModalHeader title={headerTitle} />
<ModalBody hasScrollingContent>
<Form onSubmit={handleSubmit(onSubmit, onError)}>
<Form>
<Stack gap={3}>
<FormGroup legendText={''}>
<Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const BedTypeAdministrationForm: React.FC<BedAdministrationFormProps> = ({
<ComposedModal open={showModal} onClose={() => onModalChange(false)} preventCloseOnClickOutside>
<ModalHeader title={headerTitle} />
<ModalBody hasScrollingContent>
<Form onSubmit={handleSubmit(onSubmit, onError)}>
<Form>
<Stack gap={3}>
<FormGroup legendText={''}>
<Controller
Expand Down

0 comments on commit d861aba

Please sign in to comment.