revdev-components 0.267.0 → 0.268.0
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/build/index.js +8 -4
- package/build/styles.css +0 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -2378,16 +2378,20 @@ var IconDivision = function (props) {
|
|
|
2378
2378
|
|
|
2379
2379
|
var ContentHeader2 = function (_a) {
|
|
2380
2380
|
var icon = _a.icon, children = _a.children, className = _a.className;
|
|
2381
|
-
var content = React.
|
|
2382
|
-
|
|
2381
|
+
var content = React.useMemo(function () {
|
|
2382
|
+
return icon ? React.createElement(IconDivision, { icon: icon }, children) : children;
|
|
2383
|
+
}, [icon, className, children]);
|
|
2384
|
+
return React.createElement("h2", { className: classNames(s$K.root, className) }, content);
|
|
2383
2385
|
};
|
|
2384
2386
|
|
|
2385
2387
|
var s$H = {"root":"index-module_root__WKOaj"};
|
|
2386
2388
|
|
|
2387
2389
|
var ContentHeader3 = function (_a) {
|
|
2388
2390
|
var icon = _a.icon, children = _a.children, className = _a.className;
|
|
2389
|
-
var content = React.
|
|
2390
|
-
|
|
2391
|
+
var content = React.useMemo(function () {
|
|
2392
|
+
return icon ? React.createElement(IconDivision, { icon: icon }, children) : children;
|
|
2393
|
+
}, [icon, className, children]);
|
|
2394
|
+
return React.createElement("h3", { className: classNames(s$H.root, className) }, content);
|
|
2391
2395
|
};
|
|
2392
2396
|
|
|
2393
2397
|
var s$G = {"root":"index-module_root__Fq-q1"};
|
package/build/styles.css
CHANGED