-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65311ee
commit 8f594ca
Showing
5 changed files
with
47 additions
and
37 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
33 changes: 33 additions & 0 deletions
33
apps/mobile/src/features/approver/components/outcome-addresses-card.tsx
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,33 @@ | ||
import { t } from '@lingui/macro'; | ||
|
||
import { AddressDisplayer, Avatar, Flag, Text, UsersTwoIcon } from '@leather.io/ui/native'; | ||
|
||
function BitcoinAddress({ address }: { address: string }) { | ||
return ( | ||
<Flag | ||
py="3" | ||
img={ | ||
<Avatar bg="ink.background-secondary"> | ||
<UsersTwoIcon /> | ||
</Avatar> | ||
} | ||
> | ||
<AddressDisplayer address={address} /> | ||
</Flag> | ||
); | ||
} | ||
export function OutcomeAddressesCard({ addresses }: { addresses: string[] }) { | ||
return ( | ||
<> | ||
<Text variant="label01"> | ||
{t({ | ||
id: 'approver.outcomes.title2', | ||
message: 'To address', | ||
})} | ||
</Text> | ||
{addresses.map(address => ( | ||
<BitcoinAddress key={address} address={address} /> | ||
))} | ||
</> | ||
); | ||
} |
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