Skip to content
Snippets Groups Projects
Commit a44fa866 authored by Dima Rifai's avatar Dima Rifai Committed by mcfarhat
Browse files

Issue 394- Fix issue of vest formatting

parent c2dacbc9
No related branches found
No related tags found
2 merge requests!507Delrifai/#394 2 add charts to balance history,!503Delrifai/#394 add charts to balance history
This commit is part of merge request !507. Comments created here will be created in the context of that merge request.
...@@ -34,14 +34,14 @@ import { faChevronUp, faChevronDown } from "@fortawesome/free-solid-svg-icons"; ...@@ -34,14 +34,14 @@ import { faChevronUp, faChevronDown } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import useOperationsFormatter from "@/hooks/common/useOperationsFormatter"; import useOperationsFormatter from "@/hooks/common/useOperationsFormatter";
import { convertOperationResultsToTableOperations } from "@/lib/utils"; import { convertOperationResultsToTableOperations } from "@/lib/utils";
interface OperationsTableProps { interface BalanceHistoryTableProps {
operations: Explorer.BalanceHistoryForTable[]; operations: Explorer.BalanceHistoryForTable[];
total_operations: number; total_operations: number;
total_pages: number; total_pages: number;
current_page: number; current_page: number;
} }
const BalanceHistoryTable: React.FC<OperationsTableProps> = ({ const BalanceHistoryTable: React.FC<BalanceHistoryTableProps> = ({
operations, operations,
total_operations, total_operations,
total_pages, total_pages,
...@@ -56,7 +56,7 @@ const BalanceHistoryTable: React.FC<OperationsTableProps> = ({ ...@@ -56,7 +56,7 @@ const BalanceHistoryTable: React.FC<OperationsTableProps> = ({
const operationsTypes = useOperationsTypes().operationsTypes || []; const operationsTypes = useOperationsTypes().operationsTypes || [];
const formatRawCoin = (coinValue: number) => const formatRawCoin = (coinValue: number) =>
formatNumber(coinValue, false, false); router.query.coinType === 'VESTS' ? formatNumber(coinValue, true, false) : formatNumber(coinValue, false, false);
const getOperationColor = (op_type_id: number) => { const getOperationColor = (op_type_id: number) => {
const operation = operationsTypes.find( const operation = operationsTypes.find(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment