Skip to content

Commit 8a70bdf

Browse files
SunLxyxingyuefeng
authored andcommitted
fix:修复eslint问题
1 parent 49310c1 commit 8a70bdf

File tree

1 file changed

+1
-0
lines changed
  • packages/core/src/Typography

1 file changed

+1
-0
lines changed

packages/core/src/Typography/Div.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default function Div<T>({ children, ...otherProps }: DivProps & TextProps
1010
return null;
1111
}
1212
const someStr = React.Children.toArray(children).every((item) => {
13+
// eslint-disable-next-line no-mixed-operators
1314
return typeof item === 'string' || (item && (item as any).type && (item as any).type.displayName === 'Text');
1415
});
1516
if (someStr) {

0 commit comments

Comments
 (0)