Rename blockhash label to nonce to reduce ambiguity

This commit is contained in:
Justin Starry 2020-06-02 17:53:46 +08:00 committed by Michael Vines
parent 8b95be0ee4
commit d8f3081b11
2 changed files with 8 additions and 3 deletions

View File

@ -36,13 +36,14 @@ function Popover({
function InfoTooltip({ bottom, right, text, children }: Props) {
const [state, setState] = useState<State>("hide");
const justify = right ? "end" : "start";
return (
<div
className="popover-container w-100"
onMouseOver={() => setState("show")}
onMouseOut={() => setState("hide")}
>
<div className="d-flex align-items-center justify-content-end">
<div className={`d-flex align-items-center justify-content-${justify}`}>
{children}
<span className="fe fe-help-circle ml-2"></span>
</div>

View File

@ -165,7 +165,7 @@ function StatusCard({ signature }: Props) {
<InfoTooltip
bottom
right
text="Timestamps older than 5 epochs are not available at this time"
text="Timestamps are available for confirmed blocks within the past 5 epochs"
>
Unavailable
</InfoTooltip>
@ -185,7 +185,11 @@ function StatusCard({ signature }: Props) {
{blockhash && (
<tr>
<td>Blockhash</td>
<td>
<InfoTooltip text="Transactions use a previously confirmed blockhash as a nonce prevent double spends">
Nonce
</InfoTooltip>
</td>
<td className="text-right">
<code>{blockhash}</code>
</td>