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

Migrate confirm-add-custodian-token to TypeScript #26080

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Title: Migrate confirm-add-custodian-token to TypeScript

Description:
This PR includes the migration of the confirm-add-custodian-token component and its associated Storybook and tests to TypeScript, following the project's standards for TypeScript components. The changes ensure that the component, its stories, and tests are now fully typed according to TypeScript best practices.

Link to Devin run: https://preview.devin.ai/devin/0a5ba332049042ab85c118677a94e810

Requested by: Albert

@devin-ai-integration devin-ai-integration bot requested a review from a team as a code owner July 24, 2024 08:52
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

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

The confirm-add-custodian-token component, its Storybook, and tests have been migrated to TypeScript, enhancing type safety and maintainability.

  • Storybook Migration: ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.stories.tsx updated to TypeScript, introducing a CustomData interface for type safety.
  • Test Migration: ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.test.ts converted to TypeScript, ensuring type safety in test scenarios.
  • Component Migration: ui/pages/institutional/confirm-add-custodian-token/confirm-add-custodian-token.tsx migrated to TypeScript, with type annotations added for props, state, functions, and variables.

3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

@@ -0,0 +1,159 @@
import { ComponentType } from 'react';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style: import { RenderResult } from '@testing-library/react' is unused and can be removed.

@metamaskbot metamaskbot added the team-ai AI team (for the Devin AI bot) label Jul 24, 2024
Copy link

@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-ai AI team (for the Devin AI bot)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants