diff --git a/src/components/expanded-state/custom-gas/FeesPanelTabs.tsx b/src/components/expanded-state/custom-gas/FeesPanelTabs.tsx
index 1bfe0096bff..9d36f48f31a 100644
--- a/src/components/expanded-state/custom-gas/FeesPanelTabs.tsx
+++ b/src/components/expanded-state/custom-gas/FeesPanelTabs.tsx
@@ -1,4 +1,4 @@
-import { isEmpty, upperFirst } from 'lodash';
+import { isEmpty } from 'lodash';
import React from 'react';
import { ButtonPressAnimation } from '../../animations';
import { useGas } from '@/hooks';
@@ -13,7 +13,7 @@ const { CUSTOM, URGENT, GasSpeedOrder } = gasUtils;
type TabPillProps = {
speed: string;
isSelected: boolean;
- handleOnPressTabPill: (label: string) => void;
+ handleOnPressTabPill: (speed: string) => void;
color: string;
testID?: string;
};
diff --git a/src/navigation/AddWalletNavigator.tsx b/src/navigation/AddWalletNavigator.tsx
index ab4df09d861..4227650c542 100644
--- a/src/navigation/AddWalletNavigator.tsx
+++ b/src/navigation/AddWalletNavigator.tsx
@@ -7,12 +7,9 @@ import {
ImportOrWatchWalletSheet,
ImportOrWatchWalletSheetParams,
} from '@/screens/ImportOrWatchWalletSheet';
-import { IS_ANDROID } from '@/env';
-import { SheetHandleFixedToTopHeight, SlackSheet } from '@/components/sheet';
import { BackgroundProvider } from '@/design-system';
-import { ColorValue, StatusBar, View } from 'react-native';
import { RouteProp, useRoute } from '@react-navigation/native';
-import { useDimensions } from '@/hooks';
+import { SimpleSheet } from '@/components/sheet/SimpleSheet';
const Swipe = createMaterialTopTabNavigator();
@@ -21,52 +18,20 @@ type RouteParams = {
ImportOrWatchWalletSheetParams;
};
-type WrapConfig = {
- contentHeight: number;
- backgroundColor?: ColorValue;
- scrollEnabled: boolean;
-};
-
-function wrapWithSlackSheet({
- contentHeight,
- backgroundColor,
- scrollEnabled,
-}: WrapConfig) {
- return (Component: React.ComponentType) => {
- return function WrappedWithSlackSheet() {
- return (
- // @ts-expect-error js component
-
-
-
- );
- };
- };
-}
-
export const AddWalletNavigator = () => {
const {
params: { isFirstWallet, type, userData },
} = useRoute>();
- const { height: deviceHeight } = useDimensions();
const [scrollEnabled, setScrollEnabled] = useState(false);
return (
- // wrapping in View prevents keyboard from pushing up sheet on android
-
-
- {({ backgroundColor }) => (
+
+ {({ backgroundColor }) => (
+
{
tabBar={() => null}
>
{
}}
/>
{
}}
/>
- )}
-
-
+
+ )}
+
);
};
diff --git a/src/screens/AddWalletSheet.tsx b/src/screens/AddWalletSheet.tsx
index 17310844325..a450f02dde1 100644
--- a/src/screens/AddWalletSheet.tsx
+++ b/src/screens/AddWalletSheet.tsx
@@ -7,7 +7,7 @@ import React, { useMemo, useRef } from 'react';
import * as i18n from '@/languages';
import { HARDWARE_WALLETS, PROFILES, useExperimentalFlag } from '@/config';
import { analytics, analyticsV2 } from '@/analytics';
-import { InteractionManager } from 'react-native';
+import { InteractionManager, View } from 'react-native';
import { createAccountForWallet, walletsLoadState } from '@/redux/wallets';
import WalletBackupTypes from '@/helpers/walletBackupTypes';
import { createWallet, RainbowWallet } from '@/model/wallet';
@@ -376,25 +376,41 @@ export const AddWalletSheet = () => {
)}
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/screens/ImportOrWatchWalletSheet.tsx b/src/screens/ImportOrWatchWalletSheet.tsx
index 9d718694baf..145be323e5d 100644
--- a/src/screens/ImportOrWatchWalletSheet.tsx
+++ b/src/screens/ImportOrWatchWalletSheet.tsx
@@ -11,7 +11,7 @@ import {
useTextStyle,
} from '@/design-system';
import { IS_ANDROID } from '@/env';
-import { useDimensions, useImportingWallet, useKeyboardHeight } from '@/hooks';
+import { useImportingWallet, useKeyboardHeight } from '@/hooks';
import { colors } from '@/styles';
import React, { useCallback } from 'react';
import * as i18n from '@/languages';
@@ -19,8 +19,6 @@ import { ButtonPressAnimation } from '@/components/animations';
import { RouteProp, useFocusEffect, useRoute } from '@react-navigation/native';
import Clipboard from '@react-native-community/clipboard';
import { LoadingOverlay } from '@/components/modal';
-import { StatusBar } from 'react-native';
-import { safeAreaInsetValues } from '@/utils';
const TRANSLATIONS = i18n.l.wallet.new.import_or_watch_wallet_sheet;
@@ -47,7 +45,6 @@ export const ImportOrWatchWalletSheet = () => {
seedPhrase,
} = useImportingWallet();
const keyboardHeight = useKeyboardHeight();
- const { height: deviceHeight } = useDimensions();
const textStyle = useTextStyle({
align: 'center',
@@ -60,19 +57,10 @@ export const ImportOrWatchWalletSheet = () => {
useFocusEffect(useCallback(() => inputRef.current?.focus(), [inputRef]));
const buttonDisabled = seedPhrase && !isSecretValid;
- const safeAreaTopPadding = IS_ANDROID
- ? StatusBar?.currentHeight ?? 0
- : safeAreaInsetValues.top;
return (
<>
-
+