Rename blockhash label to nonce to reduce ambiguity
This commit is contained in:
parent
8b95be0ee4
commit
d8f3081b11
|
@ -36,13 +36,14 @@ function Popover({
|
||||||
function InfoTooltip({ bottom, right, text, children }: Props) {
|
function InfoTooltip({ bottom, right, text, children }: Props) {
|
||||||
const [state, setState] = useState<State>("hide");
|
const [state, setState] = useState<State>("hide");
|
||||||
|
|
||||||
|
const justify = right ? "end" : "start";
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="popover-container w-100"
|
className="popover-container w-100"
|
||||||
onMouseOver={() => setState("show")}
|
onMouseOver={() => setState("show")}
|
||||||
onMouseOut={() => setState("hide")}
|
onMouseOut={() => setState("hide")}
|
||||||
>
|
>
|
||||||
<div className="d-flex align-items-center justify-content-end">
|
<div className={`d-flex align-items-center justify-content-${justify}`}>
|
||||||
{children}
|
{children}
|
||||||
<span className="fe fe-help-circle ml-2"></span>
|
<span className="fe fe-help-circle ml-2"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -165,7 +165,7 @@ function StatusCard({ signature }: Props) {
|
||||||
<InfoTooltip
|
<InfoTooltip
|
||||||
bottom
|
bottom
|
||||||
right
|
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
|
Unavailable
|
||||||
</InfoTooltip>
|
</InfoTooltip>
|
||||||
|
@ -185,7 +185,11 @@ function StatusCard({ signature }: Props) {
|
||||||
|
|
||||||
{blockhash && (
|
{blockhash && (
|
||||||
<tr>
|
<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">
|
<td className="text-right">
|
||||||
<code>{blockhash}</code>
|
<code>{blockhash}</code>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue