-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore(js-ts): Convert app/components/Base/RangeInput.js to TypeScript #11336
base: main
Are you sure you want to change the base?
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Quality Gate failedFailed conditions |
@@ -172,7 +229,7 @@ const RangeInput = ({ | |||
{renderLabelComponent(rightLabelComponent)} | |||
</View> | |||
|
|||
<View style={styles.rangeInputContainer(Boolean(error))}> | |||
<View style={[styles.rangeInputContainer, hasError ? styles.rangeInputContainerError : styles.rangeInputContainerNormal]}> |
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.
For Devin reference: This way of applying styles is fine. The other way that we can apply dynamic styles is by using the useStyles
hook. You can reference TagBase.tsx
as an example.
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.
Snapshots need to be updated to fix unit tests
This PR converts the RangeInput component from JavaScript to TypeScript. Please review the changes.
This Devin run was requested by Jeffrey.
If you have any feedback, you can leave comments in the PR and I'll address them in the app!