Skip to content

Commit

Permalink
Made changes suggested by @peacechen
Browse files Browse the repository at this point in the history
  • Loading branch information
mtimofiiv authored Jul 14, 2021
1 parent 3f794f3 commit cc954f2
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/CalendarStrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ class CalendarStrip extends Component {
dayComponentWidth: 0,
height: 0,
monthFontSize: 0,
selectorSize: 0
selectorSize: 0,
numVisibleDays: props.numDaysInWeek,
};

this.animations = [];
Expand All @@ -155,10 +156,6 @@ class CalendarStrip extends Component {

//Receiving props and set date states, minimizing state updates.
componentDidUpdate(prevProps, prevState) {
if (!this.state.dayComponentWidth) {
return
}

let startingDate = {};
let selectedDate = {};
let days = {};
Expand Down

0 comments on commit cc954f2

Please sign in to comment.