Improve readability of nonce

This commit is contained in:
Willian Mitsuda 2021-12-27 15:51:31 -03:00
parent 47cbe36c8f
commit e012165696
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import React from "react"; import React from "react";
import { commify } from "@ethersproject/units";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faArrowUp } from "@fortawesome/free-solid-svg-icons/faArrowUp"; import { faArrowUp } from "@fortawesome/free-solid-svg-icons/faArrowUp";
@ -14,7 +15,7 @@ const Nonce: React.FC<NonceProps> = ({ value }) => (
<span className="text-green-400"> <span className="text-green-400">
<FontAwesomeIcon icon={faArrowUp} size="1x" /> <FontAwesomeIcon icon={faArrowUp} size="1x" />
</span> </span>
<span className="text-green-600">{value}</span> <span className="text-green-600">{commify(value)}</span>
</span> </span>
); );