Rename network to cluster

This commit is contained in:
Justin Starry
2020-03-31 14:36:40 +08:00
committed by Michael Vines
parent c47c3acb10
commit 1d7dbe859a
6 changed files with 112 additions and 112 deletions

View File

@@ -9,14 +9,14 @@ import {
} from "../providers/transactions";
import bs58 from "bs58";
import { assertUnreachable } from "../utils";
import { useNetwork } from "../providers/network";
import { useCluster } from "../providers/cluster";
function TransactionsCard() {
const { transactions, idCounter } = useTransactions();
const dispatch = useTransactionsDispatch();
const signatureInput = React.useRef<HTMLInputElement>(null);
const [error, setError] = React.useState("");
const { url } = useNetwork();
const { url } = useCluster();
const onNew = (signature: string) => {
if (signature.length === 0) return;
@@ -115,7 +115,7 @@ const renderTransactionRow = (transaction: Transaction) => {
switch (transaction.status) {
case Status.CheckFailed:
statusClass = "dark";
statusText = "Network Error";
statusText = "Cluster Error";
break;
case Status.Checking:
statusClass = "info";