) => (props: any) =>
- ;
+ (Children: ComponentType
) =>
+ (props: Omit
) =>
+ ;
export default withMetricsAwareness;
diff --git a/app/declarations/index.d.ts b/app/declarations/index.d.ts
index 04d7a1238f9..74aae65cde9 100644
--- a/app/declarations/index.d.ts
+++ b/app/declarations/index.d.ts
@@ -291,3 +291,5 @@ declare module '@metamask/react-native-actionsheet' {
const ActionSheet;
export default ActionSheet;
}
+
+type $FIXME = any; // eslint-disable-line @typescript-eslint/no-explicit-any
From b697b0d90e014ba60791d4a25a310d4d083ff360 Mon Sep 17 00:00:00 2001
From: "devin-ai-integration[bot]"
<158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Thu, 12 Sep 2024 22:52:04 -0700
Subject: [PATCH 2/3] purge IWithMetricsAwarenessProps
---
.../hooks/useMetrics/withMetricsAwareness.test.tsx | 4 ++--
.../hooks/useMetrics/withMetricsAwareness.types.ts | 5 -----
2 files changed, 2 insertions(+), 7 deletions(-)
delete mode 100644 app/components/hooks/useMetrics/withMetricsAwareness.types.ts
diff --git a/app/components/hooks/useMetrics/withMetricsAwareness.test.tsx b/app/components/hooks/useMetrics/withMetricsAwareness.test.tsx
index 4823fb818ee..60c7739ed2c 100644
--- a/app/components/hooks/useMetrics/withMetricsAwareness.test.tsx
+++ b/app/components/hooks/useMetrics/withMetricsAwareness.test.tsx
@@ -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';
jest.mock('./useMetrics');
-class MockComponent extends Component {
+class MockComponent extends Component<{ metrics: IUseMetricsHook }> {
render() {
return ;
}
diff --git a/app/components/hooks/useMetrics/withMetricsAwareness.types.ts b/app/components/hooks/useMetrics/withMetricsAwareness.types.ts
deleted file mode 100644
index b12934439ac..00000000000
--- a/app/components/hooks/useMetrics/withMetricsAwareness.types.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import { IUseMetricsHook } from './useMetrics.types';
-
-export interface IWithMetricsAwarenessProps {
- metrics: IUseMetricsHook;
-}
From e64f3d8906a6116a914f2644eeb18a347c08f43a Mon Sep 17 00:00:00 2001
From: "devin-ai-integration[bot]"
<158243242+devin-ai-integration[bot]@users.noreply.github.com>
Date: Wed, 25 Sep 2024 23:16:06 +0000
Subject: [PATCH 3/3] commit to trigger CI