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

chore(js-ts): Convert app/components/Base/RangeInput.js to TypeScript #11336

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Sep 19, 2024

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!

@devin-ai-integration devin-ai-integration bot added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) team-mobile-platform No QA Needed Apply this label when your PR does not need any QA effort. labels Sep 19, 2024
Copy link
Contributor

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.

Copy link

sonarcloud bot commented Sep 19, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 15%)
54.7% Duplication on New Code (required ≤ 10%)

See analysis details on SonarCloud

@Cal-L Cal-L marked this pull request as ready for review September 24, 2024 14:43
@Cal-L Cal-L requested a review from a team as a code owner September 24, 2024 14:43
@@ -172,7 +229,7 @@ const RangeInput = ({
{renderLabelComponent(rightLabelComponent)}
</View>

<View style={styles.rangeInputContainer(Boolean(error))}>
<View style={[styles.rangeInputContainer, hasError ? styles.rangeInputContainerError : styles.rangeInputContainerNormal]}>
Copy link
Contributor

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.

Copy link
Contributor

@Cal-L Cal-L left a 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

@devin-ai-integration devin-ai-integration bot added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Sep 25, 2024
@devin-ai-integration devin-ai-integration bot added needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. team-mobile-platform skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. labels Oct 4, 2024
@devin-ai-integration devin-ai-integration bot added skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-mobile-platform labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) No QA Needed Apply this label when your PR does not need any QA effort. skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-mobile-platform
Projects
Status: Needs dev review
Development

Successfully merging this pull request may close these issues.

1 participant