-
-
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/UI/Swaps/components/InfoModal.js to TypeScript #11597
Conversation
…and Theme['shadows']
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. |
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.
LGTM
Causing our Typescript linter to fail with the following error. Essentially, by setting
|
After looking into it, the line causing the issue was last modified 18 months ago so I don't think it's because of any marge-like sequence.
|
Quality Gate passedIssues Measures |
PR Description
Title
chore(js-ts): Convert app/components/UI/Swaps/components/InfoModal.js to TypeScript
Description
This PR converts the
InfoModal.js
file to TypeScript. The conversion involved renaming the file toInfoModal.tsx
, defining prop types using TypeScript interfaces, and removing thepropTypes
section. TheuseTheme
hook was used to determine the types forcolors
andshadows
.Related Issues
N/A
Manual Testing Steps
InfoModal
component renders correctly in the application.InfoModal
component works as expected.InfoModal
component.Author Checklist
InfoModal.js
to TypeScript.propTypes
and replaced them with TypeScript interfaces.yarn lint
andyarn lint:tsc
complete without errors.Reviewer Checklist
InfoModal
component functions correctly.InfoModal
component.This Devin run was requested by naveen.
If you have any feedback, you can leave comments in the PR and I'll address them in the app!