From 19d59ad9011651e8729c6a5e777662af4dc668f9 Mon Sep 17 00:00:00 2001 From: Usama Idriss Kakumba Date: Wed, 25 Sep 2024 17:03:48 +0300 Subject: [PATCH] (fix) fix import icons from framework --- .../src/components/order-price-details.component.tsx | 4 ++-- .../src/components/order-stock-details.component.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/esm-patient-orders-app/src/components/order-price-details.component.tsx b/packages/esm-patient-orders-app/src/components/order-price-details.component.tsx index 0cff7ef07..49071a172 100644 --- a/packages/esm-patient-orders-app/src/components/order-price-details.component.tsx +++ b/packages/esm-patient-orders-app/src/components/order-price-details.component.tsx @@ -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; @@ -41,7 +41,7 @@ const OrderPriceDetailsComponent: React.FC = ({ )} > diff --git a/packages/esm-patient-orders-app/src/components/order-stock-details.component.tsx b/packages/esm-patient-orders-app/src/components/order-stock-details.component.tsx index 2a59426de..a619ef2a2 100644 --- a/packages/esm-patient-orders-app/src/components/order-stock-details.component.tsx +++ b/packages/esm-patient-orders-app/src/components/order-stock-details.component.tsx @@ -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'; @@ -29,11 +29,11 @@ const OrderStockDetailsComponent: React.FC = ({
{isInStock ? (
- {t('inStock', 'In Stock')} + {t('inStock', 'In Stock')}
) : (
- {t('outOfStock', 'Out of Stock')} + {t('outOfStock', 'Out of Stock')}
)}