-
-
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) migrate AccountOverview.js #11189
Conversation
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.
Left some comments!
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.
Remove unused file
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.
Remove unused file
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(Children: ComponentType<IWithMetricsAwarenessProps>) => (props: any) => | ||
<Children {...props} metrics={useMetrics()} />; | ||
<P extends { metrics: IUseMetricsHook }>(Children: ComponentType<P>) => |
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.
<P extends { metrics: IUseMetricsHook }>(Children: ComponentType<P>) => | |
<P extends IWithMetricsAwarenessProps>(Children: ComponentType<P>) => |
@@ -1,11 +1,10 @@ | |||
import React, { ComponentType } from 'react'; | |||
import useMetrics from './useMetrics'; | |||
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types'; | |||
import { IUseMetricsHook } from './useMetrics.types'; |
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.
import { IUseMetricsHook } from './useMetrics.types'; | |
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types'; |
|
||
jest.mock('./useMetrics'); | ||
|
||
class MockComponent extends Component<IWithMetricsAwarenessProps> { | ||
class MockComponent extends Component<{ metrics: IUseMetricsHook }> { |
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.
class MockComponent extends Component<{ metrics: IUseMetricsHook }> { | |
class MockComponent extends Component<IWithMetricsAwarenessProps> { |
@@ -3,11 +3,11 @@ import { render } from '@testing-library/react-native'; | |||
import withMetricsAwareness from './withMetricsAwareness'; | |||
import useMetrics from './useMetrics'; | |||
import { View } from 'react-native'; | |||
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types'; | |||
import { IUseMetricsHook } from './useMetrics.types'; |
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.
import { IUseMetricsHook } from './useMetrics.types'; | |
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types'; |
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.
Unless there was a reason to remove this, let's keep it?
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
this PR is stale and unlikely to be merged; closing for sake of tidiness |
Description
Migrate app/components/UI/AccountOverview/index.js
Devin Run: N/A (human data collection)
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist