chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
@@ -6,7 +6,7 @@ const TableHead = ({ children, className, style }) => {
|
||||
return (
|
||||
<div
|
||||
className={classnames(
|
||||
'bg-secondary-dark border-b border-secondary-light flex font-bold pr-2',
|
||||
'bg-secondary-dark border-secondary-light flex border-b pr-2 font-bold',
|
||||
className
|
||||
)}
|
||||
style={style}
|
||||
@@ -26,7 +26,7 @@ TableHead.defaultProps = {
|
||||
};
|
||||
|
||||
TableHead.propTypes = {
|
||||
children: function(props, propName, componentName) {
|
||||
children: function (props, propName, componentName) {
|
||||
const elements = React.Children.toArray(props.children);
|
||||
const isString = elements.some(child => typeof child === 'string');
|
||||
|
||||
@@ -36,9 +36,7 @@ TableHead.propTypes = {
|
||||
);
|
||||
}
|
||||
|
||||
const isInvalidElement = elements.some(
|
||||
child => !React.isValidElement(child)
|
||||
);
|
||||
const isInvalidElement = elements.some(child => !React.isValidElement(child));
|
||||
|
||||
if (isInvalidElement) {
|
||||
return new Error(
|
||||
|
||||
Reference in new issue
Block a user