Skip to content

Commit

Permalink
Added Price data powered by CoinGecko
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglashdaniel committed Nov 13, 2021
1 parent b51a14c commit b9f3294
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/brave_wallet/browser/brave_wallet_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ constexpr webui::LocalizedString kLocalizedStrings[] = {
{"braveWalletPrice", IDS_BRAVE_WALLET_PRICE},
{"braveWalletBack", IDS_BRAVE_WALLET_BACK},
{"braveWalletAddAccount", IDS_BRAVE_WALLET_ADD_ACCOUNT},
{"braveWalletPoweredByCoinGecko", IDS_BRAVE_WALLET_POWERED_BY_COIN_GECKO},
{"braveWalletBuy", IDS_BRAVE_WALLET_BUY},
{"braveWalletSend", IDS_BRAVE_WALLET_SEND},
{"braveWalletSwap", IDS_BRAVE_WALLET_SWAP},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ import {
TransactionPlaceholderText,
AssetBalanceDisplay,
DividerRow,
Spacer
Spacer,
CoinGeckoText
} from './style'

export interface Props {
Expand Down Expand Up @@ -364,7 +365,7 @@ const Portfolio = (props: Props) => {
<TransactionPlaceholderText>{getLocale('braveWalletTransactionPlaceholder')}</TransactionPlaceholderText>
</EmptyTransactionContainer>
)}

<CoinGeckoText>{getLocale('braveWalletPoweredByCoinGecko')}</CoinGeckoText>
</>
}
{!selectedAsset &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,11 @@ export const Spacer = styled.div`
width: 100%;
margin-top: 10px;
`

export const CoinGeckoText = styled.span`
font-family: Arial;
font-size: 10px;
font-weight: normal;
color: ${(p) => p.theme.color.text03};
margin: 15px 0px;
`
1 change: 1 addition & 0 deletions components/brave_wallet_ui/stories/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ provideStrings({
braveWalletPrice: 'Price',
braveWalletBack: 'Back',
braveWalletAddAccount: 'Add Account',
braveWalletPoweredByCoinGecko: 'Price data powered by CoinGecko',

// BuySendSwap
braveWalletBuy: 'Buy',
Expand Down
1 change: 1 addition & 0 deletions components/resources/wallet_strings.grdp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
<message name="IDS_BRAVE_WALLET_PRICE" desc="Portfolio Price title">Price</message>
<message name="IDS_BRAVE_WALLET_BACK" desc="General back button">Back</message>
<message name="IDS_BRAVE_WALLET_ADD_ACCOUNT" desc="Portfolio Add Account button">Add Account</message>
<message name="IDS_BRAVE_WALLET_POWERED_BY_COIN_GECKO" desc="Disclaimer on assets details page for GoinGecko contract agreement">Price data powered by CoinGecko</message>
<message name="IDS_BRAVE_WALLET_BUY" desc="Buy tab button">Buy</message>
<message name="IDS_BRAVE_WALLET_SEND" desc="Send tab button">Send</message>
<message name="IDS_BRAVE_WALLET_SWAP" desc="Swap tab button">Swap</message>
Expand Down

0 comments on commit b9f3294

Please sign in to comment.