Skip to content
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

[BUG] Range picker has 2 icons when selecting a specific month #25

Closed
metalmaninfr opened this issue Jul 15, 2021 · 2 comments
Closed

Comments

@metalmaninfr
Copy link

Range picker

Expected Behavior

should have 1 icon on each side

Current Behavior

when selecting a specific month, there are 2 icons instead on 1

Additional Comments

image

@metalmaninfr
Copy link
Author

plus months are only in english, is there a way to translate them to other languages ?

@samsam-ahmadi
Copy link
Owner

Hi, You can use this custom prop to customize the icons

components={{
        header: {
          monthIcons: {
            right: <span>next month</span>,
            left: <span>prev month</span>,
          },
          yearIcons: {
            right: <span>next year</span>,
            left: <span>prev year</span>,
          },
        },
      }}

We don't have localize for now, But we can work on it,
Feel free to raise a PR for that if you have any idea about it

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

No branches or pull requests

2 participants