Skip to content

Commit

Permalink
Footer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ravindra114 committed Nov 8, 2024
1 parent f80aea1 commit 4ce1544
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/datepicker/datepicker-component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ const DatePickerComponent = ( {
numberOfMonths,
...props
}: DatePickerProps ) => {
const isFooter = props.footer !== undefined;
// check footer is a valide compoenent

Check failure on line 110 in src/components/datepicker/datepicker-component.tsx

View workflow job for this annotation

GitHub Actions / analysis (18.15)

Trailing spaces not allowed
const isFooter = React.isValidElement(props.footer) || typeof props.footer === 'function';

Check failure on line 111 in src/components/datepicker/datepicker-component.tsx

View workflow job for this annotation

GitHub Actions / analysis (18.15)

There must be a space after this paren

Check failure on line 111 in src/components/datepicker/datepicker-component.tsx

View workflow job for this annotation

GitHub Actions / analysis (18.15)

There must be a space before this paren
const [ showMonthSelect, setShowMonthSelect ] = useState( false );
const [ showYearSelect, setShowYearSelect ] = useState( false ); // New state for year selection
const [ selectedYear, setSelectedYear ] = useState( new Date().getFullYear() );
Expand Down

0 comments on commit 4ce1544

Please sign in to comment.