Skip to content

Conversation

ali-bichanga
Copy link

the current code in the basic calendar with default settings (line 106 of README) gives this error:

Type '{ [x: string]: { selected: true; disableTouchEvent: true; selectedDotColor: string; }; }' is not assignable to type 'MarkedDates'.
'string' index signatures are incompatible.
Object literal may only specify known properties, but 'selectedDotColor' does not exist in type 'MarkingProps'. Did you mean to write 'selectedColor'?ts(2322)
index.d.ts(22, 5): The expected type comes from property 'markedDates' which is declared here on type 'IntrinsicAttributes & CalendarProps & ContextProp'

The fix makes it work as intended, highlighting the selected date in orange.

the current code in the basic calendar with default settings (line 106 of README) gives this error:

Type '{ [x: string]: { selected: true; disableTouchEvent: true; selectedDotColor: string; }; }' is not assignable to type 'MarkedDates'.
  'string' index signatures are incompatible.
    Object literal may only specify known properties, but 'selectedDotColor' does not exist in type 'MarkingProps'. Did you mean to write 'selectedColor'?ts(2322)
index.d.ts(22, 5): The expected type comes from property 'markedDates' which is declared here on type 'IntrinsicAttributes & CalendarProps & ContextProp'


The fix makes it work as intended, highlighting the selected date in orange.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant