Skip to content

Commit

Permalink
fix: numeral
Browse files Browse the repository at this point in the history
  • Loading branch information
CzarekDryl committed Oct 24, 2024
1 parent ac28941 commit 7be6c44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ const BalanceInfoRow: FC<BalanceInfoRowProps> = ({
value={tokenBalanceData?.balance ?? 0}
decimals={tokenDecimals}
suffix={` ${multiLineTextEllipsis(nativeToken?.symbol ?? 'CLNY', 5)}`}
appearance={{ size: 'small' }}
/>
),
},
Expand All @@ -108,7 +107,6 @@ const BalanceInfoRow: FC<BalanceInfoRowProps> = ({
value={tokenBalanceData?.activeBalance ?? 0}
decimals={tokenDecimals}
suffix={` ${multiLineTextEllipsis(nativeToken?.symbol ?? 'CLNY', 5)}`}
appearance={{ size: 'small' }}
/>
),
},
Expand All @@ -120,7 +118,6 @@ const BalanceInfoRow: FC<BalanceInfoRowProps> = ({
value={tokenBalanceData?.lockedBalance ?? 0}
decimals={tokenDecimals}
suffix={` ${multiLineTextEllipsis(nativeToken?.symbol ?? 'CLNY', 5)}`}
appearance={{ size: 'small' }}
/>
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const TotalReputation: FC<TotalReputationProps> = ({
: percentageReputation || 0
}
suffix=" %"
appearance={{ size: 'small' }}
/>
)}
</div>
Expand All @@ -83,13 +82,7 @@ const TotalReputation: FC<TotalReputationProps> = ({
{
key: '2',
label: formatText(MSG.reputationPoints),
value: (
<Numeral
value={formattedReputationPoints}
suffix=" pts"
appearance={{ size: 'small' }}
/>
),
value: <Numeral value={formattedReputationPoints} suffix=" pts" />,
},
]}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import React from 'react';
import { DEFAULT_NETWORK } from '~constants';
import { useCurrencyContext } from '~context/CurrencyContext/CurrencyContext.ts';
import useCurrency from '~hooks/useCurrency.ts';
import Numeral, {
type Props as NumeralProps,
} from '~shared/Numeral/Numeral.tsx';
import Numeral from '~shared/Numeral/Numeral.tsx';
import { type NumeralProps } from '~shared/Numeral/types.ts';
import { type Network } from '~types/network.ts';
import { type FetchCurrentPriceArgs } from '~utils/currency/index.ts';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/convertToDecimal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
adjustConvertedValue,
convertToDecimalOrNull,
} from '~shared/Numeral/index.ts';
import { type NumeralValue } from '~shared/Numeral/Numeral.tsx';
import { type NumeralValue } from '~shared/Numeral/types.ts';

import type Decimal from 'decimal.js';

Expand Down

0 comments on commit 7be6c44

Please sign in to comment.