Skip to content

Commit

Permalink
(feat) Add patient registration pictogram (#1150)
Browse files Browse the repository at this point in the history
* (feat) Add patient registration pictogram

* Docs
  • Loading branch information
denniskigen authored Sep 17, 2024
1 parent d09603d commit c4557d8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/framework/esm-framework/docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,16 @@ ___

___

### RegistrationPictogram

`Const` **RegistrationPictogram**: `MemoExoticComponent`<`ForwardRefExoticComponent`<[`PictogramProps`](API.md#pictogramprops) & `RefAttributes`<`SVGSVGElement`\>\>\>

#### Defined in

[packages/framework/esm-styleguide/src/pictograms/pictograms.tsx:66](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/pictograms/pictograms.tsx#L66)

___

### RenewIcon

`Const` **RenewIcon**: `MemoExoticComponent`<`ForwardRefExoticComponent`<[`IconProps`](API.md#iconprops) & `RefAttributes`<`SVGSVGElement`\>\>\>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import laboratory from './svgs/Labs.svg';
import appointments from './svgs/Appointments-2.svg';
import patientLists from './svgs/Patient Management_Patients.svg';
import serviceQueues from './svgs/service-queues.svg';
import patientRegistration from './svgs/registration.svg';

export function setupPictograms() {
addSvg('omrs-pict-home', home);
addSvg('omrs-pict-laboratory', laboratory);
addSvg('omrs-pict-patient-lists', patientLists);
addSvg('omrs-pict-appointments', appointments);
addSvg('omrs-pict-service-queues', serviceQueues);
addSvg('omrs-pict-registration', patientRegistration);
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ export const LaboratoryPictogram = memo(
return <Pictogram ref={ref} pictogram="omrs-pict-laboratory" pictogramProps={props} />;
}),
);

export const RegistrationPictogram = memo(
forwardRef<SVGSVGElement, PictogramProps>(function RegistrationPictogram(props, ref) {
return <Pictogram ref={ref} pictogram="omrs-pict-registration" pictogramProps={props} />;
}),
);

0 comments on commit c4557d8

Please sign in to comment.