Skip to content

Commit

Permalink
(fix) O3-4018: Add fixed Information icon set
Browse files Browse the repository at this point in the history
  • Loading branch information
ibacher committed Oct 3, 2024
1 parent b40d918 commit f418ddf
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 12 deletions.
2 changes: 2 additions & 0 deletions packages/framework/esm-styleguide/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export const GroupIcon = () => <div>GroupIcon</div>;
export const GroupAccessIcon = () => <div>GroupAccessIcon</div>;
export const HospitalBedIcon = () => <div>HospitalBedIcon</div>;
export const InformationIcon = () => <div>InformationIcon</div>;
export const InformationFilledIcon = () => <div>InformationFilledIcon</div>;
export const InformationSquareIcon = () => <div>InformationSquareIcon</div>;
export const ImageMedicalIcon = () => <div>ImageMedicalIcon</div>;
export const InventoryManagementIcon = () => <div>InventoryManagementIcon</div>;
export const RadiologyIcon = () => <div>RadiologyIcon</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ import group from './svgs/group.svg';
import groupAccess from './svgs/group-access.svg';
import hospitalBed from './svgs/hospital-bed.svg';
import imageMedical from './svgs/image-medical.svg';
import information from './svgs/information.svg';
import informationFilled from './svgs/information--filled.svg';
import informationSquare from './svgs/information--square.svg';
import inventoryManagement from './svgs/inventory-management.svg';
import listChecked from './svgs/list-checked.svg';
import location from './svgs/location.svg';
Expand Down Expand Up @@ -106,6 +109,9 @@ export function setupIcons() {
addSvg('omrs-icon-group-access', groupAccess);
addSvg('omrs-icon-hospital-bed', hospitalBed);
addSvg('omrs-icon-image-medical', imageMedical);
addSvg('omrs-icon-information', information);
addSvg('omrs-icon-information-filled', informationFilled);
addSvg('omrs-icon-information-square', informationSquare);
addSvg('omrs-icon-inventory-management', inventoryManagement);
addSvg('omrs-icon-list-checked', listChecked);
addSvg('omrs-icon-location', location);
Expand Down
24 changes: 24 additions & 0 deletions packages/framework/esm-styleguide/src/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,30 @@ export const InventoryManagementIcon = memo(
}),
);

/**
*/
export const InformationIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function InformationIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-information" iconProps={props} />;
}),
);

/**
*/
export const InformationFilledIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function InformationFilledIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-information-filled" iconProps={props} />;
}),
);

/**
*/
export const InformationSquareIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function InformationSquareIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-information-square" iconProps={props} />;
}),
);

/**
*/
export const ListCheckedIcon = memo(
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 4 additions & 12 deletions packages/framework/esm-styleguide/src/icons/svgs/information.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f418ddf

Please sign in to comment.