Skip to content

Commit

Permalink
Merge pull request #1796 from myxmaster/display_clock_for_pending_cha…
Browse files Browse the repository at this point in the history
…nnels

Channels pane: Added clock icon to Button in WalletHeader in case there are pending channels
  • Loading branch information
kaloudis authored Oct 28, 2023
2 parents a2782a1 + a58252e commit 4a09190
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions components/WalletHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export default class WalletHeader extends React.Component<
PosStore,
SyncStore
} = this.props;
const { filteredPendingChannels } = ChannelsStore!;
const { settings, posStatus, setPosStatus } = SettingsStore!;
const { paid } = LightningAddressStore!;
const { isSyncing } = SyncStore!;
Expand Down Expand Up @@ -387,6 +388,18 @@ export default class WalletHeader extends React.Component<
title={title}
noUppercase
buttonStyle={{ alignSelf: 'center' }}
icon={
filteredPendingChannels?.length > 0
? {
name: 'clockcircle',
type: 'antdesign',
size: 20,
color: themeColor(
'background'
)
}
: null
}
/>
</View>
) : (
Expand Down

0 comments on commit 4a09190

Please sign in to comment.