Skip to content

fix code in section basic calendar with default settings in README.md #2711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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