lint(curly): consistent use of curly brackets in codebase (#3584)

This commit is contained in:
Alireza authored and GitHub committed 2023-08-09 10:07:33 -04:00
1 parent 9ae3d9f769
commit 5d435424e2
113 files changed
+1501 -1056

No files matched your search

@@ -45,7 +45,7 @@ const renderYearsOptions = () => {
return options;
};
const DateRange = (props) => {
const DateRange = props => {
const { id, onChange, startDate, endDate } = props;
const [focusedInput, setFocusedInput] = useState(null);
const renderYearsOptionsCallback = useCallback(renderYearsOptions, []);
@@ -81,15 +81,15 @@ const DateRange = (props) => {
onYearSelect: PropTypes.func,
};
const handleMonthChange = (event) => {
const handleMonthChange = event => {
onMonthSelect(month, event.target.value);
};
const handleYearChange = (event) => {
const handleYearChange = event => {
onYearSelect(month, event.target.value);
};
const handleOnBlur = () => { };
const handleOnBlur = () => {};
return (
<div className="flex justify-center">
@@ -136,10 +136,10 @@ const DateRange = (props) => {
onChange({
startDate: newStartDate ? newStartDate.format('YYYYMMDD') : undefined,
endDate: newEndDate ? newEndDate.format('YYYYMMDD') : undefined,
})
});
}}
focusedInput={focusedInput}
onFocusChange={(updatedVal) => setFocusedInput(updatedVal)}
onFocusChange={updatedVal => setFocusedInput(updatedVal)}
/** OPTIONAL */
renderCalendarInfo={renderDatePresets}
renderMonthElement={renderMonthElement}
@@ -149,7 +149,7 @@ const DateRange = (props) => {
closeDatePicker: 'Close',
clearDates: 'Clear dates',
}}
isOutsideRange={(day) => !isInclusivelyBeforeDay(day, moment())}
isOutsideRange={day => !isInclusivelyBeforeDay(day, moment())}
hideKeyboardShortcutsPanel={true}
numberOfMonths={1}
showClearDates={false}