-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Slider story to Typescript (#806)
* ♻️ JSX to TSX * ♻️ Slider story Typescript * 🎨 Added a decorator for margins * 🚧 Trying to fix lint errors * 🚧 Some lint warnings fixed, a few left * 🚚 Rename functions and props * 🚧 Still trying to solve ts errors Issues with getFormattedText function * 🔥 Removed useless fix toString() on type any not allowed * 🔥 Removed comment * 🚨 Finally fixed ts error Children was explicitly typed in the subcomponents with number | string * 🔥 removed unused * ♻️ Fixed import in test * 🐛 Fixed a bug where onChange mismatch on HTMLAttributes Also changed children type back to ReactNode * 🔥 Removed unused type Had to replace this type with explicit type because the type was not read elsewhere * 🔥 Removed another unused type * ♻️ Changed all event types to FormEvent<HTMLDivElement> But kept Omit onChange because of the weird error posted in the PR * 🐛 onChange expected a function Fixes TS event type error * 🔥 Removed Omit from type import Useless after fix * 🔥 Went back to Omit solution for the onChange type mismatch
- Loading branch information
Showing
8 changed files
with
131 additions
and
94 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
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
Oops, something went wrong.