-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix dropdown's translatewithid() signature (#15516)
Restore ListBoxMenuIconTranslationKey type that was available in Carbon 10. Relatedly, fix ListBoxMenuIcon's translateWithId() signature so messageId is type ListBoxMenuIconTranslationKey, rather than just type string. Finally, do the identical fix to Dropdown's translateWithId() signature, and export a DropdownTranslationKey type. The translationIds objects from #435 (cc @joshblack) didn't seem to be helping, especially since they aren't exported from ListBox/index.ts. I removed ListBoxMenuIcon's translationIds object as part of adding this typing. Note that neither ListBoxMenuIconTranslationKey nor even ListBox itself is exported from @carbon/react. But Dropdown is. Co-authored-by: TJ Egan <tw15egan@gmail.com>
- Loading branch information
Showing
4 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters