yarn format

This commit is contained in:
rjpeterson 2022-04-02 10:03:06 -07:00
parent 4437bd35e6
commit aa4ae86cbf
2 changed files with 22 additions and 11 deletions

View File

@ -157,10 +157,21 @@ const TradeHistoryTable = ({
<div className="flex flex-col pb-3 sm:flex-row sm:items-center sm:justify-between">
<div className="flex items-center">
<h4 className="mb-0 flex items-center text-th-fgd-1">
{data.length === 1
? t('number-trade', {number: !initialLoad ? <Loading className="mr-2" /> : data.length})
: t('number-trades', {number: !initialLoad ? <Loading className="mr-2" /> : data.length})
}
{data.length === 1
? t('number-trade', {
number: !initialLoad ? (
<Loading className="mr-2" />
) : (
data.length
),
})
: t('number-trades', {
number: !initialLoad ? (
<Loading className="mr-2" />
) : (
data.length
),
})}
</h4>
{mangoAccount ? (

View File

@ -211,9 +211,9 @@ const LiquidationHistoryTable = ({ history, view }) => {
<div className="flex items-center justify-between pb-3">
<div className="flex items-center">
<h4 className="mb-0 text-th-fgd-1">
{filteredHistory.length === 1
? t('number-liquidation', {number: filteredHistory.length})
: t('number-liquidations', {number: filteredHistory.length})}
{filteredHistory.length === 1
? t('number-liquidation', { number: filteredHistory.length })
: t('number-liquidations', { number: filteredHistory.length })}
</h4>
<Tooltip
content={
@ -478,11 +478,11 @@ const HistoryTable = ({ history, view }) => {
<h4 className="mb-0 text-th-fgd-1">
{filteredHistory.length === 1
? view === 'Withdraw'
? t('number-withdrawal', {number: filteredHistory.length})
: t('number-deposit', {number: filteredHistory.length})
? t('number-withdrawal', { number: filteredHistory.length })
: t('number-deposit', { number: filteredHistory.length })
: view === 'Withdraw'
? t('number-withdrawals', {number: filteredHistory.length})
: t('number-deposits', {number: filteredHistory.length})}
? t('number-withdrawals', { number: filteredHistory.length })
: t('number-deposits', { number: filteredHistory.length })}
</h4>
<Tooltip
content={