Skip to content

Commit

Permalink
fix(transfer): fix force transfer bottom sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Oct 2, 2024
1 parent 043cb7b commit 0a7bc30
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions e2e/channels.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ d('Transfer', () => {

// TODO: mine single blocks and check updated transfer time

// Sometimes the channel is only opened after restart

Check warning on line 278 in e2e/channels.e2e.js

View workflow job for this annotation

GitHub Actions / Run lint check

Trailing spaces not allowed
await device.launchApp();

// wait for channel to be opened
await waitForActiveChannel(lnd, ldkNodeId);

Expand Down
2 changes: 0 additions & 2 deletions src/navigation/bottom-sheet/BottomSheets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { viewControllersSelector } from '../../store/reselect/ui';
import BackupNavigation from './BackupNavigation';
import BoostPrompt from '../../screens/Wallets/BoostPrompt';
import ConnectionClosed from './ConnectionClosed';
import ForceTransfer from './ForceTransfer';
import LNURLWithdrawNavigation from './LNURLWithdrawNavigation';
import NewTxPrompt from '../../screens/Wallets/NewTxPrompt';
import OrangeTicketNavigation from './OrangeTicketNavigation';
Expand All @@ -24,7 +23,6 @@ const BottomSheets = (): JSX.Element => {
{views.backupNavigation.isMounted && <BackupNavigation />}
{views.boostPrompt.isMounted && <BoostPrompt />}
{views.connectionClosed.isMounted && <ConnectionClosed />}
{views.forceTransfer.isMounted && <ForceTransfer />}
{views.lnurlWithdraw.isMounted && <LNURLWithdrawNavigation />}
{views.newTxPrompt.isMounted && <NewTxPrompt />}
{views.orangeTicket.isMounted && <OrangeTicketNavigation />}
Expand Down
2 changes: 1 addition & 1 deletion src/navigation/bottom-sheet/ForceTransfer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React, { memo, ReactElement, useEffect, useState } from 'react';
import { useAppDispatch, useAppSelector } from '../../hooks/redux';
import { Trans, useTranslation } from 'react-i18next';

import { Display } from '../../styles/text';
import BottomSheetWrapper from '../../components/BottomSheetWrapper';
import BottomSheetScreen from '../../components/BottomSheetScreen';
import { closeAllChannels } from '../../utils/lightning';
import { showToast } from '../../utils/notifications';
import { useAppDispatch, useAppSelector } from '../../hooks/redux';
import {
useBottomSheetBackPress,
useSnapPoints,
Expand Down
6 changes: 4 additions & 2 deletions src/navigation/root/RootNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ import Widget from '../../screens/Widgets/Widget';
import WidgetEdit from '../../screens/Widgets/WidgetEdit';
import WidgetsSuggestions from '../../screens/Widgets/WidgetsSuggestions';
import WidgetsOnboarding from '../../screens/Widgets/WidgetsOnboarding';
import ForgotPIN from '../../screens/Settings/PIN/ForgotPIN';
import BackupSubscriber from '../../utils/backup/backups-subscriber';
import ForceTransfer from '../bottom-sheet/ForceTransfer';
import BottomSheetsLazy from '../bottom-sheet/BottomSheetsLazy';
import { __E2E__ } from '../../constants/env';
import type { RootStackParamList } from '../types';
import BottomSheetsLazy from '../bottom-sheet/BottomSheetsLazy';
import ForgotPIN from '../../screens/Settings/PIN/ForgotPIN';

const Stack = createNativeStackNavigator<RootStackParamList>();

Expand Down Expand Up @@ -228,6 +229,7 @@ const RootNavigator = (): ReactElement => {

<BottomSheetsLazy />
<BackupSubscriber />
<ForceTransfer />

<Dialog
visible={showDialog && isAuthenticated}
Expand Down

0 comments on commit 0a7bc30

Please sign in to comment.