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

Translation not possible with TypeScript #145

Open
kgmv opened this issue Apr 27, 2021 · 1 comment
Open

Translation not possible with TypeScript #145

kgmv opened this issue Apr 27, 2021 · 1 comment

Comments

@kgmv
Copy link

kgmv commented Apr 27, 2021

Describe the bug
ColorPicker does not allow to apply translations (e.g. the 'SET' button) when using TypeScript

To Reproduce
Add <ColorPicker /> component to a TypeScript React Component (with .tsx extension) . Between all the allowed properties translate is not visible.

Expected behaviour
translate should be available to allow translating the control as in the Localization example of the docs:
https://mikbry.github.io/material-ui-color/?id=components-colorpicker--localization&viewMode=docs

Screenshots
image

@mikbry
Copy link
Owner

mikbry commented Apr 27, 2021

Thanks @kgmv, In fact it is a typo in ColorPicker story, you don't need to pass translate as parameter. It is a function passed to useTranslate hook used internally by ColorPicker.

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