Skip to content

Commit

Permalink
chore(docs): update FiatValue component usage with historic rates
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSchinzel committed May 15, 2024
1 parent 6d6bf1e commit 317c196
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/features/fiat-rates.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ Most straightforward usage is to just pass `amount` and `symbol`, if you need to
<FiatValue amount={amount} symbol={assetSymbol} tokenAddress={tokenTransfer?.address} />
```
For converting to fiat amount using rates from custom source use `useCustomSource` in combination with `source` property:
For converting to fiat amount using rates from history use `useHistoricRate` in combination with `historicRate` property:
```jsx
<FiatValue
amount={targetAmount}
symbol={transaction.symbol}
source={transaction.rates}
useCustomSource
historicRate={historicRate}
useHistoricRate
/>
```
Expand Down

0 comments on commit 317c196

Please sign in to comment.