Skip to content

Commit

Permalink
Use more abstract names for the currency pair
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 15, 2023
1 parent 318eae9 commit e3f64ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions dapp/src/components/Overview/PositionDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export default function PositionDetails(props: CardProps) {
</Tooltip>
</HStack>
<CurrencyBalanceWithConversion
token={{
from={{
currencyType: "bitcoin",
amount: "2398567898",
variant: "greater-balance",
}}
fiatCurrency={{
to={{
currencyType: "usd",
amount: 419288.98,
shouldBeFormatted: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ import React from "react"
import { CurrencyBalance, CurrencyBalanceProps } from "../CurrencyBalance"

export function CurrencyBalanceWithConversion({
token,
fiatCurrency,
from,
to,
}: {
token: CurrencyBalanceProps
fiatCurrency: CurrencyBalanceProps
from: CurrencyBalanceProps
to: CurrencyBalanceProps
}) {
return (
<>
<CurrencyBalance {...token} />
<CurrencyBalance {...fiatCurrency} />
<CurrencyBalance {...from} />
<CurrencyBalance {...to} />
</>
)
}

0 comments on commit e3f64ad

Please sign in to comment.