From be697df245b024669b70ed21857a05a102ce47b5 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 30 Sep 2024 18:47:49 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Gloss:=20Remove=20Unused=20Impor?= =?UTF-8?q?ts=20+=20Variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ModalSheetView/ModalSheetView.tsx | 6 +++--- src/components/ModalSheetView/ModalSheetViewTypes.tsx | 1 - .../RNIModalSheetVIew/RNIModalSheetViewTypes.ts | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/components/ModalSheetView/ModalSheetView.tsx b/src/components/ModalSheetView/ModalSheetView.tsx index 9420e485..ac1f4ca4 100644 --- a/src/components/ModalSheetView/ModalSheetView.tsx +++ b/src/components/ModalSheetView/ModalSheetView.tsx @@ -48,7 +48,7 @@ export const ModalSheetView = React.forwardRef< const [ modalSheetContentMap, - setModalSheetContentMap + // setModalSheetContentMap ] = React.useState({}); const isModalContentLazy = props.isModalContentLazy ?? true; @@ -116,8 +116,8 @@ export const ModalSheetView = React.forwardRef< React.useImperativeHandle(ref, () => rawRef.current!); - const shouldEnableDebugBackgroundColors = - props.shouldEnableDebugBackgroundColors ?? false; + // const shouldEnableDebugBackgroundColors = + // props.shouldEnableDebugBackgroundColors ?? false; const children = React.Children.map(props.children, (child) => { return React.cloneElement( diff --git a/src/components/ModalSheetView/ModalSheetViewTypes.tsx b/src/components/ModalSheetView/ModalSheetViewTypes.tsx index 4a621f07..f40a6b71 100644 --- a/src/components/ModalSheetView/ModalSheetViewTypes.tsx +++ b/src/components/ModalSheetView/ModalSheetViewTypes.tsx @@ -1,5 +1,4 @@ import type { PropsWithChildren } from "react"; -import type { ViewProps } from "react-native"; import type { RemapObject } from "react-native-ios-utilities"; import type { RNIModalSheetViewProps, RNIModalSheetViewRef } from "../../native_components/RNIModalSheetVIew"; diff --git a/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts b/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts index 51477476..47c68cd6 100644 --- a/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts +++ b/src/native_components/RNIModalSheetVIew/RNIModalSheetViewTypes.ts @@ -1,5 +1,3 @@ -import type React from "react"; - import type { PropsWithChildren } from "react"; import type { ViewProps } from "react-native"; import type { StateReactTag, StateViewID } from "react-native-ios-utilities";