Skip to content

Commit

Permalink
update tr language on dapp #272
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhvk committed Jul 21, 2020
1 parent ca30cda commit 3185d5e
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ const SearchResult = ({ items, changeSelectedToken }) => {
className={Classes.POPOVER_DISMISS}
onClick={() => changeSelectedToken(items[index])}
>
{items[index].pair}
{items[index].termByDay}&nbsp;{items[index].termByDay > 1 ? <FormattedMessage id="app.days" /> : <FormattedMessage id="app.day" />}
/{items[index].lendingTokenSymbol}
</SearchResultItem>
)
}
Expand Down Expand Up @@ -234,15 +235,16 @@ const TokenRow = ({
isFavoriteTokensList,
changeSelectedToken,
}: TokenRowProps) => {
const { favorited, close, change, pair } = token
const { favorited, close, change, pair, termByDay, lendingTokenSymbol } = token

return (
<Row>
<Cell width="10%" onClick={() => updateFavorite(pair, !favorited)}>
<UtilityIcon name={favorited ? "FavoriteSolid" : "Favorite"} width={12} height={12} />
</Cell>
<Cell width="35%" className={Classes.POPOVER_DISMISS} onClick={() => changeSelectedToken(token)}>
{pair}
{termByDay}&nbsp;{termByDay > 1 ? <FormattedMessage id="app.days" /> : <FormattedMessage id="app.day" />}
/{lendingTokenSymbol}
</Cell>
<Cell width="30%" className={Classes.POPOVER_DISMISS} onClick={() => changeSelectedToken(token)}>
{BigNumber(close).toFormat(2)}&#37;
Expand Down

0 comments on commit 3185d5e

Please sign in to comment.