chore(prettier): full repo linting and code reformatting once and for all (#3627)

This commit is contained in:
Alireza authored and GitHub committed 2023-09-01 16:19:39 -04:00
1 parent 01500a2d4c
commit 9045ddaedc
656 files changed
+21737 -20628

No files matched your search

@@ -5,10 +5,7 @@ import classnames from 'classnames';
const TableBody = ({ children, className, style }) => {
return (
<div
className={classnames(
'mt-2 max-h-48 overflow-y-scroll ohif-scrollbar',
className
)}
className={classnames('ohif-scrollbar mt-2 max-h-48 overflow-y-scroll', className)}
style={style}
>
{React.isValidElement(children)
@@ -26,7 +23,7 @@ TableBody.defaultProps = {
};
TableBody.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 +33,7 @@ TableBody.propTypes = {
);
}
const isInvalidElement = elements.some(
child => !React.isValidElement(child)
);
const isInvalidElement = elements.some(child => !React.isValidElement(child));
if (isInvalidElement) {
return new Error(