Skip to content

Commit 371ff8b

Browse files
committed
fix prettier and compiler
1 parent c06db73 commit 371ff8b

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

src/components/RecordTroubleshootDataToolMenu/BaseRecordTroubleshootDataToolMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type JSZip from 'jszip';
22
import type {RefObject} from 'react';
3-
import React, {useCallback, useEffect, useState} from 'react';
3+
import React, {useEffect, useState} from 'react';
44
import {Alert} from 'react-native';
55
import DeviceInfo from 'react-native-device-info';
66
import Button from '@components/Button';
@@ -85,7 +85,7 @@ function BaseRecordTroubleshootDataToolMenu({
8585
const [isDisabled, setIsDisabled] = useState<boolean>(false);
8686
const [profileTracePath, setProfileTracePath] = useState<string>();
8787

88-
const getAppInfo = useCallback(async (profilingData: ProfilingData) => {
88+
const getAppInfo = async (profilingData: ProfilingData) => {
8989
const [totalMemory, usedMemory] = await Promise.all([DeviceInfo.getTotalMemory(), DeviceInfo.getUsedMemory()]);
9090
return JSON.stringify({
9191
appVersion: pkg.version,
@@ -96,7 +96,7 @@ function BaseRecordTroubleshootDataToolMenu({
9696
memoizeStats: profilingData.memoizeStats,
9797
performance: profilingData.performanceMeasures,
9898
});
99-
}, []);
99+
};
100100

101101
const onToggle = async () => {
102102
if (!shouldRecordTroubleshootData) {

src/components/RecordTroubleshootDataToolMenu/finalizeStopRecording.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import type StopRecordingParams from './handleStopRecording.types';
22

3-
type FinalizeStopRecordingParams = Pick<
4-
StopRecordingParams,
5-
'infoFileName' | 'appInfo' | 'logsWithParsedMessages' | 'onDisableLogging' | 'cleanupAfterDisable' | 'zipRef' | 'onDownloadZip'
6-
>;
3+
type FinalizeStopRecordingParams = Pick<StopRecordingParams, 'infoFileName' | 'appInfo' | 'logsWithParsedMessages' | 'onDisableLogging' | 'cleanupAfterDisable' | 'zipRef' | 'onDownloadZip'>;
74

85
export default async function finalizeStopRecording({
96
infoFileName,

src/components/RecordTroubleshootDataToolMenu/handleStopRecording.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,7 @@ import type StopRecordingParams from './handleStopRecording.types';
33

44
type HandleStopRecording = (params: StopRecordingParams) => Promise<void>;
55

6-
const handleStopRecording: HandleStopRecording = ({
7-
infoFileName,
8-
appInfo,
9-
logsWithParsedMessages,
10-
onDisableLogging,
11-
cleanupAfterDisable,
12-
zipRef,
13-
onDownloadZip,
14-
}) =>
6+
const handleStopRecording: HandleStopRecording = ({infoFileName, appInfo, logsWithParsedMessages, onDisableLogging, cleanupAfterDisable, zipRef, onDownloadZip}) =>
157
finalizeStopRecording({
168
infoFileName,
179
appInfo,

0 commit comments

Comments
 (0)