Skip to content

Commit

Permalink
style: apply prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
KumJungMin committed Dec 14, 2024
1 parent a2584a0 commit cf49e09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/calendar/Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export const Calendar = React.memo(
const decrementYear = () => {
const year = getViewYear();
const _currentYear = year - 1;

setCurrentYear(_currentYear);

if (props.yearNavigator && _currentYear < yearOptions[0]) {
Expand Down Expand Up @@ -1792,7 +1792,7 @@ export const Calendar = React.memo(
const onMonthSelect = (event, month) => {
if (props.view === 'month') {
const year = getViewYear();

onDateSelect(event, { year, month: month, day: 1, selectable: true });
event.preventDefault();
} else {
Expand Down

0 comments on commit cf49e09

Please sign in to comment.