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

@@ -36,13 +36,7 @@ const InputGroup = ({
}
};
const renderFieldInputComponent = ({
name,
displayName,
inputProps,
isSortable,
inputType,
}) => {
const renderFieldInputComponent = ({ name, displayName, inputProps, isSortable, inputType }) => {
const _isSortable = isSortable && isSortingEnabled;
const _sortDirection = sortBy !== name ? 'none' : sortDirection;
@@ -123,16 +117,13 @@ const InputGroup = ({
}
};
return (
<div className="container m-auto relative flex flex-col">
<div className="flex flex-row w-full">
<div className="container relative m-auto flex flex-col">
<div className="flex w-full flex-row">
{inputMeta.map(inputMeta => {
return (
<div
key={inputMeta.name}
className={classnames(
'pl-4 first:pl-12',
getGridWidthClass(inputMeta.gridCol)
)}
className={classnames('pl-4 first:pl-12', getGridWidthClass(inputMeta.gridCol))}
>
{renderFieldInputComponent(inputMeta)}
</div>
@@ -148,11 +139,9 @@ InputGroup.propTypes = {
PropTypes.shape({
name: PropTypes.string.isRequired,
displayName: PropTypes.string.isRequired,
inputType: PropTypes.oneOf(['Text', 'MultiSelect', 'DateRange', 'None'])
.isRequired,
inputType: PropTypes.oneOf(['Text', 'MultiSelect', 'DateRange', 'None']).isRequired,
isSortable: PropTypes.bool.isRequired,
gridCol: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12])
.isRequired,
gridCol: PropTypes.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]).isRequired,
option: PropTypes.arrayOf(
PropTypes.shape({
value: PropTypes.string,