@bytebrand/fe-ui-core 4.2.179 → 4.2.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -68,8 +68,8 @@ const OrderStatusCar = ({
|
|
|
68
68
|
setActiveStep(index + 1);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
if (!!ref && !!ref.current) {
|
|
72
|
-
ref.current.
|
|
71
|
+
if (!!ref && !!ref.current && typeof ref.current.scrollBy === 'function') {
|
|
72
|
+
ref.current.scrollBy({
|
|
73
73
|
behavior: 'smooth',
|
|
74
74
|
left: 156 * steps.indexOf(status)
|
|
75
75
|
})
|
|
@@ -114,7 +114,6 @@ const OrderStatusCar = ({
|
|
|
114
114
|
|
|
115
115
|
return (
|
|
116
116
|
<OrderStatusCard
|
|
117
|
-
cardRef={selector === status ? ref : null}
|
|
118
117
|
title={t(`orderStatus.${selector}`)}
|
|
119
118
|
description={statusDescription}
|
|
120
119
|
icon={icon}
|
|
@@ -13,7 +13,7 @@ interface IOrderStatusCard {
|
|
|
13
13
|
isDone?: boolean;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
const OrderStatusCard = ({ icon, title, description, isDisabled,
|
|
16
|
+
const OrderStatusCard = ({ icon, title, description, isDisabled, isActive, isDone }: IOrderStatusCard) => {
|
|
17
17
|
const orderReceivedCardClasses = classnames(
|
|
18
18
|
styles.orderReceivedCard,
|
|
19
19
|
{ [styles.cardInProgress]: isActive }
|
|
@@ -27,7 +27,7 @@ const OrderStatusCard = ({ icon, title, description, isDisabled, cardRef, isActi
|
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<div className={styles.orderReceivedCardContainer}>
|
|
30
|
-
<div data-testid='orderStatusCard' className={orderReceivedCardClasses}
|
|
30
|
+
<div data-testid='orderStatusCard' className={orderReceivedCardClasses}>
|
|
31
31
|
<div className={styles.cardIcon}>
|
|
32
32
|
<IconSVG disabled={isDisabled} customDimensions name={icon} width={87}/>
|
|
33
33
|
</div>
|