-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4918 from leather-wallet/release/wednesday-ledger
Release/wednesday ledger
- Loading branch information
Showing
165 changed files
with
1,618 additions
and
1,649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/app/common/hooks/balance/stx/use-stx-outbound-value.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { HStack } from 'leather-styles/jsx'; | ||
|
||
import { useViewportMinWidth } from '@app/common/hooks/use-media-query'; | ||
import { BulletSeparator } from '@app/ui/components/bullet-separator/bullet-separator'; | ||
import { Caption } from '@app/ui/components/typography/caption'; | ||
import { truncateMiddle } from '@app/ui/utils/truncate-middle'; | ||
|
||
import { StacksAccountLoader } from '../loaders/stacks-account-loader'; | ||
import { BitcoinNativeSegwitAccountLoader } from './bitcoin-account-loader'; | ||
|
||
interface AccountAddressesProps { | ||
index: number; | ||
} | ||
export function AcccountAddresses({ index }: AccountAddressesProps) { | ||
const isBreakpointSm = useViewportMinWidth('sm'); | ||
|
||
return ( | ||
<HStack alignItems="center" gap="space.02" whiteSpace="nowrap"> | ||
<BulletSeparator> | ||
<StacksAccountLoader index={index}> | ||
{account => <Caption>{truncateMiddle(account.address, isBreakpointSm ? 4 : 3)}</Caption>} | ||
</StacksAccountLoader> | ||
<BitcoinNativeSegwitAccountLoader index={index}> | ||
{signer => <Caption>{truncateMiddle(signer.address, 5)}</Caption>} | ||
</BitcoinNativeSegwitAccountLoader> | ||
</BulletSeparator> | ||
</HStack> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
import { SettingsSelectors } from '@tests/selectors/settings.selectors'; | ||
|
||
import { ItemInteractive } from '@app/ui/components/item/item-interactive'; | ||
import { ItemLayout } from '@app/ui/components/item/item.layout'; | ||
import { Spinner } from '@app/ui/components/spinner'; | ||
|
||
interface AccountListItemLayoutProps { | ||
accountAddresses: ReactNode; | ||
accountName: ReactNode; | ||
avatar: ReactNode; | ||
balanceLabel: ReactNode; | ||
index: number; | ||
isLoading: boolean; | ||
isSelected: boolean; | ||
onSelectAccount(): void; | ||
} | ||
export function AccountListItemLayout(props: AccountListItemLayoutProps) { | ||
const { | ||
accountAddresses, | ||
accountName, | ||
avatar, | ||
balanceLabel, | ||
index, | ||
isLoading, | ||
isSelected, | ||
onSelectAccount, | ||
} = props; | ||
|
||
return ( | ||
<ItemInteractive | ||
data-testid={SettingsSelectors.SwitchAccountItemIndex.replace('[index]', `${index}`)} | ||
key={`account-${index}`} | ||
onClick={onSelectAccount} | ||
> | ||
<ItemLayout | ||
isSelected={isSelected} | ||
flagImg={avatar} | ||
titleLeft={accountName} | ||
titleRight={ | ||
isLoading ? ( | ||
<Spinner | ||
color="accent.text-subdued" | ||
position="absolute" | ||
right={0} | ||
size="18px" | ||
top="calc(50% - 8px)" | ||
/> | ||
) : ( | ||
balanceLabel | ||
) | ||
} | ||
captionLeft={accountAddresses} | ||
/> | ||
</ItemInteractive> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.