@bytebrand/fe-ui-core 4.2.221 → 4.2.222

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytebrand/fe-ui-core",
3
- "version": "4.2.221",
3
+ "version": "4.2.222",
4
4
  "description": "UI components for the auto.de project",
5
5
  "main": "index.ts",
6
6
  "module": "dist/common.js",
@@ -115,20 +115,23 @@ const withStats = (WrappedComponent: any) => ({
115
115
  const favoritesIconClassName = classnames(styles.statsStarIcon, { [styles.accented]: isFavoured });
116
116
 
117
117
  return (
118
- <div className={styles.section}>
119
- {!!totalCarImpCount ? <div className={styles.statsViewsCount}>
120
- <IconSVG name='common_SliderEye' customDimensions className={styles.statsEyeIcon} />
121
- <span>
122
- {totalCarImpCount}
123
- </span>
124
- </div> : null}
125
- {!!totalFavCount ? <div className={favoritesClassName} onClick={onFavoriteClick}>
126
- <IconSVG name='star' customDimensions className={favoritesIconClassName} />
127
- <span>
128
- {totalFavCount}
129
- </span>
130
- </div> : null}
131
- </div>
118
+ <>
119
+ {(!!totalCarImpCount || !!totalFavCount) && <div className={styles.section}>
120
+ {!!totalCarImpCount ? <div className={styles.statsViewsCount}>
121
+ <IconSVG name='common_SliderEye' customDimensions className={styles.statsEyeIcon} />
122
+ <span>
123
+ {totalCarImpCount}
124
+ </span>
125
+ </div> : null}
126
+ {!!totalFavCount ? <div className={favoritesClassName} onClick={onFavoriteClick}>
127
+ <IconSVG name='star' customDimensions className={favoritesIconClassName} />
128
+ <span>
129
+ {totalFavCount}
130
+ </span>
131
+ </div> : null}
132
+ </div>
133
+ }
134
+ </>
132
135
  );
133
136
  };
134
137