-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix(intl-phone-input): ability to overwrite country-data #1562
base: master
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: 09a5a9f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Pull Request Test Coverage Report for Build 13114230259Details
💛 - Coveralls |
/** | ||
* | ||
* Список правил парсинга номеров телефонов по странам (для переопределения дефолтного) | ||
* @type {CountriesData[]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Пожалуй это лишнее (@type {CountriesData[]}
), ведь мы находимся в парадигме ts и переданный тип для пропса говорит сам за себя.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это описание (вместе с типом) нужно для сторибука, благодаря этому doc отображается параметр с его описанием
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я имел ввиду только строчку 50, где указан @type. описание трогать не нужно
|
Собрана новая демка. |
|
Собрана новая демка. |
Опишите проблему
Требование от НСПК: возможная длина номера тлф до 15 цифр
Добавил пропс для переопределения дефолтного массива countriesData, чтобы по месту использования компонента можно было передать массив в котором уже будет нужная длина номеров телефонов