baseui 0.0.0-next-1a635aa → 0.0.0-next-9bbebbb
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/badge/utils.js +1 -1
- package/badge/utils.js.flow +1 -1
- package/es/badge/utils.js +1 -1
- package/esm/badge/utils.js +1 -1
- package/package.json +1 -1
package/badge/utils.js
CHANGED
|
@@ -22,7 +22,7 @@ LICENSE file in the root directory of this source tree.
|
|
|
22
22
|
var getAnchorFromChildren = function getAnchorFromChildren(children) {
|
|
23
23
|
var childArray = React.Children.toArray(children);
|
|
24
24
|
|
|
25
|
-
if (childArray.length
|
|
25
|
+
if (childArray.length > 1) {
|
|
26
26
|
// eslint-disable-next-line no-console
|
|
27
27
|
console.error("[baseui] No more than 1 child may be passed to Badge, found ".concat(childArray.length, " children"));
|
|
28
28
|
}
|
package/badge/utils.js.flow
CHANGED
|
@@ -9,7 +9,7 @@ import * as React from 'react';
|
|
|
9
9
|
|
|
10
10
|
export const getAnchorFromChildren = (children: ?React.Node) => {
|
|
11
11
|
const childArray = React.Children.toArray(children);
|
|
12
|
-
if (childArray.length
|
|
12
|
+
if (childArray.length > 1) {
|
|
13
13
|
// eslint-disable-next-line no-console
|
|
14
14
|
console.error(
|
|
15
15
|
`[baseui] No more than 1 child may be passed to Badge, found ${childArray.length} children`
|
package/es/badge/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from 'react';
|
|
|
8
8
|
export const getAnchorFromChildren = children => {
|
|
9
9
|
const childArray = React.Children.toArray(children);
|
|
10
10
|
|
|
11
|
-
if (childArray.length
|
|
11
|
+
if (childArray.length > 1) {
|
|
12
12
|
// eslint-disable-next-line no-console
|
|
13
13
|
console.error(`[baseui] No more than 1 child may be passed to Badge, found ${childArray.length} children`);
|
|
14
14
|
}
|
package/esm/badge/utils.js
CHANGED
|
@@ -8,7 +8,7 @@ import * as React from 'react';
|
|
|
8
8
|
export var getAnchorFromChildren = function getAnchorFromChildren(children) {
|
|
9
9
|
var childArray = React.Children.toArray(children);
|
|
10
10
|
|
|
11
|
-
if (childArray.length
|
|
11
|
+
if (childArray.length > 1) {
|
|
12
12
|
// eslint-disable-next-line no-console
|
|
13
13
|
console.error("[baseui] No more than 1 child may be passed to Badge, found ".concat(childArray.length, " children"));
|
|
14
14
|
}
|