Skip to content

Commit

Permalink
(feat) Add icon to add sticky notes (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk authored Jul 16, 2024
1 parent b06664c commit 8e3c5c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/framework/esm-styleguide/mock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const SwitcherIcon = () => <div>SwitcherIcon</div>;
export const ShoppingCartIcon = () => <div>ShoppingCartIcon</div>;
export const ShoppingCartArrowDownIcon = () => <div>ShoppingCartArrowDownIcon</div>;
export const ShoppingCartAddItemIcon = () => <div>ShoppingCartAddItemIcon</div>;
export const StickyNoteAddIcon = () => <div>StickyNoteAddIcon</div>;
export const TableOfContentsIcon = () => <div>TableOfContentsIcon</div>;
export const TableIcon = () => <div>TableIcon</div>;
export const TranslateIcon = () => <div>TranslateIcon</div>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import save from './svgs/save.svg';
import search from './svgs/search.svg';
import shoppingCart from './svgs/shopping-cart.svg';
import shoppingCartArrowDown from './svgs/shopping-cart--arrow-down.svg';
import stickyNoteAdd from './svgs/sticky-note-add.svg';
import switcher from './svgs/switcher.svg';
import tableOfContents from './svgs/table-of-contents.svg';
import table from './svgs/table.svg';
Expand Down Expand Up @@ -121,6 +122,7 @@ export function setupIcons() {
addSvg('omrs-icon-save', save);
addSvg('omrs-icon-shopping-cart', shoppingCart);
addSvg('omrs-icon-shopping-cart--arrow-down', shoppingCartArrowDown);
addSvg('omrs-icon-sticky-note-add', stickyNoteAdd);
addSvg('omrs-icon-switcher', switcher);
addSvg('omrs-icon-switcher', switcher);
addSvg('omrs-icon-table-of-contents', tableOfContents);
Expand Down
9 changes: 9 additions & 0 deletions packages/framework/esm-styleguide/src/icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,15 @@ export const ShoppingCartArrowDownIcon = memo(
}),
);

/**
* Used as action button to open ward in-patient note workspace
*/
export const StickyNoteAddIcon = memo(
forwardRef<SVGSVGElement, IconProps>(function ShoppingCartArrowDownIcon(props, ref) {
return <Icon ref={ref} icon="omrs-icon-sticky-note-add" iconProps={props} />;
}),
);

/**
* Used as a button to add an item to the Order basket from a search
*/
Expand Down
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 8e3c5c6

Please sign in to comment.