Skip to content

Commit

Permalink
chore(suite): analyze in blockbook to analyze in blockchain explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasklim committed Nov 21, 2024
1 parent 17f49cb commit 4af0ee4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ export const AnalyzeInExplorerBanner = ({ txid, symbol }: AnalyzeInExplorerBanne
variant="info"
icon="cube"
button={{
href: `${explorer?.tx}${txid}`,
children: <Translation id="TR_ANALYZE_IN_BLOCKBOOK_OPEN" />,
href: `${explorer?.tx}${txid}${explorer.queryString ?? ''}`,
children: <Translation id="TR_ANALYZE_IN_EXPLORER_OPEN" />,
icon: 'arrowUpRight',
iconAlignment: 'right',
size: 'small',
}}
>
<TextWrapper>
<Heading>
<Translation id="TR_ANALYZE_IN_BLOCKBOOK" />
<Translation id="TR_ANALYZE_IN_EXPLORER" />
</Heading>
<Description>
<Translation id="TR_ANALYZE_IN_BLOCKBOOK_DESC" />
<Translation id="TR_ANALYZE_IN_EXPLORER_DESC" />
</Description>
</TextWrapper>
</NotificationCard>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ const GridRowGroupComponent = ({
explorerUrlQueryString={network?.explorer.queryString}
shouldAllowCopy={!isPhishingTransaction}
/>
<br />
{typeof amount === 'string' ? (
<StyledFormattedCryptoAmount value={amount} symbol={symbol} />
) : (
Expand Down
18 changes: 9 additions & 9 deletions packages/suite/src/support/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,7 @@ const messages = defineMessagesWithTypeCheck({
id: 'TR_SHOW_DETAILS',
},
TR_SHOW_DETAILS_IN_BLOCK_EXPLORER: {
defaultMessage: 'Show details in Block Explorer',
defaultMessage: 'Show details in blockchain explorer',
id: 'TR_SHOW_DETAILS_IN_BLOCK_EXPLORER',
},
TR_SHOW_UNVERIFIED_ADDRESS: {
Expand Down Expand Up @@ -6518,17 +6518,17 @@ const messages = defineMessagesWithTypeCheck({
id: 'TR_FINGERPRINT_ADDRESS',
defaultMessage: 'Fingerprint:',
},
TR_ANALYZE_IN_BLOCKBOOK: {
id: 'TR_ANALYZE_IN_BLOCKBOOK',
defaultMessage: 'Analyze in Trezor Blockbook',
TR_ANALYZE_IN_EXPLORER: {
id: 'TR_ANALYZE_IN_EXPLORER',
defaultMessage: 'Analyze in blockchain explorer',
},
TR_ANALYZE_IN_BLOCKBOOK_DESC: {
id: 'TR_ANALYZE_IN_BLOCKBOOK_DESC',
TR_ANALYZE_IN_EXPLORER_DESC: {
id: 'TR_ANALYZE_IN_EXPLORER_DESC',
defaultMessage:
'See inputs and outputs in Trezor Blockbook as it might be easier to analyze there.',
'See inputs and outputs in blockchain explorer as it might be easier to analyze there.',
},
TR_ANALYZE_IN_BLOCKBOOK_OPEN: {
id: 'TR_ANALYZE_IN_BLOCKBOOK_OPEN',
TR_ANALYZE_IN_EXPLORER_OPEN: {
id: 'TR_ANALYZE_IN_EXPLORER_OPEN',
defaultMessage: 'Open',
},
TR_PAGINATION_NEWER: {
Expand Down

0 comments on commit 4af0ee4

Please sign in to comment.