Skip to content

Commit 9b4c4e0

Browse files
authored
Merge pull request Expensify#88280 from shubham1206agra/knip-audit-export-1
[NoQA] Remove unused exports (batch 1)
2 parents bfed334 + facd48d commit 9b4c4e0

30 files changed

Lines changed: 22 additions & 96 deletions

File tree

src/CONST/LOCALES.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ function isTranslationTargetLocale(locale: string): locale is TranslationTargetL
8383
}
8484

8585
export {
86-
BETA_LOCALES,
8786
EXTENDED_LOCALES,
8887
FULLY_SUPPORTED_LOCALES,
8988
LOCALES,

src/SplashScreenStateContext.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,4 @@ function useSplashScreenActions() {
7272
return useContext(SplashScreenActionsContext);
7373
}
7474

75-
export default SplashScreenStateContext;
7675
export {SplashScreenStateContextProvider, useSplashScreenState, useSplashScreenActions};
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import {Actions, ActionSheetAwareScrollViewProvider, useActionSheetAwareScrollViewActions, useActionSheetAwareScrollViewState} from './ActionSheetAwareScrollViewContext';
22

3-
function ActionSheetAwareScrollView() {
4-
return null;
5-
}
6-
7-
export default ActionSheetAwareScrollView;
8-
93
const renderScrollComponent = undefined;
104

115
export {renderScrollComponent, ActionSheetAwareScrollViewProvider, Actions, useActionSheetAwareScrollViewState, useActionSheetAwareScrollViewActions};
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import {Actions, ActionSheetAwareScrollViewProvider, useActionSheetAwareScrollViewActions, useActionSheetAwareScrollViewState} from './ActionSheetAwareScrollViewContext';
22

3-
function ActionSheetAwareScrollView() {
4-
return null;
5-
}
6-
7-
export default ActionSheetAwareScrollView;
8-
93
const renderScrollComponent = undefined;
104

115
export {renderScrollComponent, ActionSheetAwareScrollViewProvider, Actions, useActionSheetAwareScrollViewState, useActionSheetAwareScrollViewActions};
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
import {Actions, ActionSheetAwareScrollViewProvider, useActionSheetAwareScrollViewActions, useActionSheetAwareScrollViewState} from './ActionSheetAwareScrollViewContext';
22

3-
function ActionSheetAwareScrollView() {
4-
return null;
5-
}
6-
7-
export default ActionSheetAwareScrollView;
8-
93
const renderScrollComponent = undefined;
104

115
export {renderScrollComponent, ActionSheetAwareScrollViewProvider, Actions, useActionSheetAwareScrollViewState, useActionSheetAwareScrollViewActions};

src/components/ActionSheetAwareScrollView/index.android.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ function ActionSheetAwareScrollView({style, children, ref, ...restProps}: Action
2222
);
2323
}
2424

25-
export default ActionSheetAwareScrollView;
26-
2725
/**
2826
* This function should be used as renderScrollComponent prop for FlatList
2927
* @param props - props that will be passed to the ScrollView from FlatList

src/components/ActionSheetAwareScrollView/index.ios.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ function ActionSheetAwareScrollView({style, children, ref, ...restProps}: Action
2828
);
2929
}
3030

31-
export default ActionSheetAwareScrollView;
32-
3331
/**
3432
* This function should be used as renderScrollComponent prop for FlatList
3533
* @param props - props that will be passed to the ScrollView from FlatList

src/components/ActionSheetAwareScrollView/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ function ActionSheetAwareScrollView({children, ref, ...restProps}: ActionSheetAw
2020
);
2121
}
2222

23-
export default ActionSheetAwareScrollView;
24-
2523
/**
2624
* The bottom spacing config for this action sheet is only used on Android and iOS. On other platforms,
2725
* this component will be a default Reanimated.ScrollView, because the onScroll handler used is from Reanimated.

src/components/Charts/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import BarChart from './BarChart';
22
import ChartHeader from './components/ChartHeader';
3-
import ChartTooltip from './components/ChartTooltip';
43
import LineChart from './LineChart';
54
import PieChart from './PieChart';
65

7-
export {BarChart, ChartHeader, ChartTooltip, LineChart, PieChart};
6+
export {BarChart, ChartHeader, LineChart, PieChart};
87
export type {CartesianChartProps, ChartDataPoint, UnitPosition, UnitWithFallback} from './types';

src/components/ContactPermissionModal/index.native.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
99
import {setHasDeniedContactImportPrompt} from '@libs/actions/ContactPermissions';
1010
import {getContactPermission, requestContactPermission} from '@libs/ContactPermission';
1111
import ONYXKEYS from '@src/ONYXKEYS';
12-
import type {ContactPermissionModalProps} from './types';
12+
import type ContactPermissionModalProps from './types';
1313

1414
function ContactPermissionModal({onDeny, onGrant, onFocusTextInput}: ContactPermissionModalProps) {
1515
const [hasDeniedContactImportPrompt] = useOnyx(ONYXKEYS.HAS_DENIED_CONTACT_IMPORT_PROMPT);

0 commit comments

Comments
 (0)