Closed devin-ai-integration[bot] closed 1 week ago
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.
Issues
1 New issue
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code
Convert app/components/UI/BlockingActionModal/index.js to TypeScript
Changes Made
index.js
toindex.tsx
PropTypes
import and prop type definitionsBlockingActionModalProps
interface for component propsTheme
type from '../../../util/theme/models'colors
parameter increateStyles
functiononAnimationCompleted
prop optional to maintain compatibilityConnectQRHardware/index.tsx
Motivation
This change is part of our ongoing effort to migrate the codebase to TypeScript, improving type safety and developer experience.
Context
The BlockingActionModal component is used in various parts of the application to display a modal with a loading spinner. Converting it to TypeScript will help catch potential type-related errors and improve code maintainability.
Related Issues
N/A
Manual Testing Steps
isLoadingAction
is true.modalVisible
prop.Notes
onAnimationCompleted
prop was made optional to avoid unnecessary modifications to other files using this component.ConnectQRHardware/index.tsx
have been reverted to ensure this PR only contains intended changes related to the BlockingActionModal component.This Devin run was requested by Sampriti