Skip to content

Commit

Permalink
(fix) fix import icons from framework
Browse files Browse the repository at this point in the history
  • Loading branch information
usamaidrsk committed Oct 17, 2024
1 parent d94e5b8 commit 19d59ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { useMemo } from 'react';
import { useOrderPrice } from '../hooks/useOrderPrice';
import styles from './order-price-details.scss';
import { SkeletonText, Tooltip } from '@carbon/react';
import { Information } from '@carbon/react/icons';
import { useTranslation } from 'react-i18next';
import { InformationIcon } from '@openmrs/esm-framework';

interface OrderPriceDetailsComponentProps {
orderItemUuid: string;
Expand Down Expand Up @@ -41,7 +41,7 @@ const OrderPriceDetailsComponent: React.FC<OrderPriceDetailsComponentProps> = ({
)}
>
<button className={styles.priceToolTipTrigger} type="button">
<Information />
<InformationIcon />
</button>
</Tooltip>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useMemo } from 'react';
import { CheckmarkFilledIcon, CloseFilledIcon } from '@openmrs/esm-framework';
import { useOrderStockInfo } from '../hooks/useOrderStockInfo';
import { CheckmarkFilled, CloseFilled } from '@carbon/react/icons';
import styles from './order-stock-details.scss';
import { SkeletonText } from '@carbon/react';
import { useTranslation } from 'react-i18next';
Expand Down Expand Up @@ -29,11 +29,11 @@ const OrderStockDetailsComponent: React.FC<OrderStockDetailsComponentProps> = ({
<div>
{isInStock ? (
<div className={styles.itemInStock}>
<CheckmarkFilled size={16} /> {t('inStock', 'In Stock')}
<CheckmarkFilledIcon size={16} /> {t('inStock', 'In Stock')}
</div>
) : (
<div className={styles.itemOutOfStock}>
<CloseFilled size={16} /> {t('outOfStock', 'Out of Stock')}
<CloseFilledIcon size={16} /> {t('outOfStock', 'Out of Stock')}
</div>
)}
</div>
Expand Down

0 comments on commit 19d59ad

Please sign in to comment.