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 ModalNavbarTitle to TypeScript #11243

Merged
merged 3 commits into from
Sep 18, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

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

Convert ModalNavbarTitle Component to TypeScript

Description

This PR converts the ModalNavbarTitle component from JavaScript to TypeScript. The conversion improves type safety and maintainability of the component.

Changes Made

  • Renamed index.js to index.tsx
  • Created ModalNavbarTitleProps interface
  • Removed PropTypes import and usage
  • Updated class declaration to use TypeScript syntax

Files Changed

  • app/components/UI/ModalNavbarTitle/index.tsx

Testing

No functional changes were made. The component should behave exactly as before.

Notes

  • No additional props or context were found to be used in this component
  • PureComponent did not require type parameters
  • styles object was left as is, as StyleSheet.create() infers types

Labels

  • team-mobile-platform
  • needs-dev-review
  • No QA Needed

Link to Devin run: https://preview.devin.ai/devin/7a9f387f766c470c8ac4f7d06b9a3333

Requested by: Silas

If you have any feedback, you can leave comments in the PR and I'll address them in the app!

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.

@devin-ai-integration devin-ai-integration bot added team-mobile-platform 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. labels Sep 17, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.66%. Comparing base (7475ab4) to head (91588e4).
Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11243      +/-   ##
==========================================
+ Coverage   55.24%   55.66%   +0.41%     
==========================================
  Files        1558     1573      +15     
  Lines       37153    37476     +323     
  Branches     4406     4472      +66     
==========================================
+ Hits        20527    20860     +333     
+ Misses      16155    16125      -30     
- Partials      471      491      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@devin-ai-integration devin-ai-integration bot changed the title Convert ModalNavbarTitle Component to TypeScript Convert ModalNavbarTitle to TypeScript Sep 17, 2024
@devin-ai-integration devin-ai-integration bot changed the title Convert ModalNavbarTitle to TypeScript feat: Convert ModalNavbarTitle to TypeScript Sep 17, 2024
@devin-ai-integration devin-ai-integration bot force-pushed the convert-ts-ModalNavbarTitle branch from 91588e4 to 72ff1ae Compare September 17, 2024 07:28
@devin-ai-integration devin-ai-integration bot changed the title feat: Convert ModalNavbarTitle to TypeScript chore(js-ts): Convert ModalNavbarTitle to TypeScript Sep 17, 2024
Copy link

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.

LGTM

@sethkfman sethkfman marked this pull request as ready for review September 18, 2024 16:06
@sethkfman sethkfman requested a review from a team as a code owner September 18, 2024 16:06
@sethkfman sethkfman added this pull request to the merge queue Sep 18, 2024
Merged via the queue into main with commit e75453e Sep 18, 2024
37 of 38 checks passed
@sethkfman sethkfman deleted the convert-ts-ModalNavbarTitle branch September 18, 2024 16:23
@github-actions github-actions bot locked and limited conversation to collaborators Sep 18, 2024
@github-actions github-actions bot removed the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Sep 18, 2024
@metamaskbot metamaskbot added the release-7.32.0 Issue or pull request that will be included in release 7.32.0 label Sep 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
No QA Needed Apply this label when your PR does not need any QA effort. release-7.32.0 Issue or pull request that will be included in release 7.32.0 team-mobile-platform
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants