evandhq/react-persian-datepicker

Undefined on Calendar's className

francescaProject opened this issue · 3 comments

I've a problem, my DatePicker component works good, but the Calendar component inside doesn't get the right className, which I suppose it should be "calendarContainer".. Any idea?
Thanks alot.

same problem here

same here

seraj commented

use this in your component

const styles= {
    calendarContainer: 'calendarContainer',
    dayPickerContainer: 'dayPickerContainer',
    monthsList: 'monthsList',
    daysOfWeek: 'daysOfWeek',
    dayWrapper: 'dayWrapper',
    selected: 'selected',
    heading: 'heading'
}

<DatePicker calendarStyles={styles}/>