From e9960169735c6a5d8d3fa526c1b55639465a2c0f Mon Sep 17 00:00:00 2001 From: Evan Kaloudis Date: Sun, 24 Nov 2024 12:41:28 -0500 Subject: [PATCH] Channels: replace toggle header with tab nav --- components/WalletHeader.tsx | 36 +----- locales/en.json | 5 +- views/Channels/ChannelsPane.tsx | 190 +++++++++++++++++++++++--------- 3 files changed, 145 insertions(+), 86 deletions(-) diff --git a/components/WalletHeader.tsx b/components/WalletHeader.tsx index f3e282b9a..ccb77938b 100644 --- a/components/WalletHeader.tsx +++ b/components/WalletHeader.tsx @@ -23,7 +23,6 @@ import NodeInfoStore from '../stores/NodeInfoStore'; import PosStore from '../stores/PosStore'; import SyncStore from '../stores/SyncStore'; -import Button from '../components/Button'; import Header from './Header'; import LoadingIndicator from '../components/LoadingIndicator'; import NodeIdenticon from '../components/NodeIdenticon'; @@ -207,7 +206,6 @@ interface WalletHeaderProps { loading?: boolean; title?: string; channels?: boolean; - toggle?: () => void; } interface WalletHeaderState { @@ -255,7 +253,6 @@ export default class WalletHeader extends React.Component< loading, title, channels, - toggle, AlertStore, SettingsStore, NodeInfoStore, @@ -265,7 +262,7 @@ export default class WalletHeader extends React.Component< PosStore, SyncStore } = this.props; - const { filteredPendingChannels, pendingHTLCs } = ChannelsStore!; + const { pendingHTLCs } = ChannelsStore!; const { settings, posStatus, setPosStatus, implementation } = SettingsStore!; const { paid, redeemingAll } = LightningAddressStore!; @@ -517,36 +514,7 @@ export default class WalletHeader extends React.Component< centerComponent={ title ? ( - {toggle ? ( - -