From a76a2d71a2f3adf5e89228100b8ed9669e661e3e Mon Sep 17 00:00:00 2001 From: Willian Mitsuda Date: Mon, 6 Sep 2021 03:34:13 -0300 Subject: [PATCH] Rename component --- src/AddressTransactions.tsx | 10 +++++----- src/Transaction.tsx | 8 ++++---- src/components/{Tab.tsx => NavTab.tsx} | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) rename src/components/{Tab.tsx => NavTab.tsx} (75%) diff --git a/src/AddressTransactions.tsx b/src/AddressTransactions.tsx index 1970b8c..cb17b4b 100644 --- a/src/AddressTransactions.tsx +++ b/src/AddressTransactions.tsx @@ -21,7 +21,7 @@ import StandardFrame from "./StandardFrame"; import StandardSubtitle from "./StandardSubtitle"; import Copy from "./components/Copy"; import ContentFrame from "./ContentFrame"; -import CustomTab from "./components/Tab"; +import NavTab from "./components/NavTab"; import Contracts from "./address/Contracts"; import UndefinedPageControl from "./search/UndefinedPageControl"; import ResultHeader from "./search/ResultHeader"; @@ -217,14 +217,14 @@ const AddressTransactions: React.FC = () => { - + Overview - + - + Contract - + diff --git a/src/Transaction.tsx b/src/Transaction.tsx index f24cbbe..63ec3ca 100644 --- a/src/Transaction.tsx +++ b/src/Transaction.tsx @@ -4,7 +4,7 @@ import StandardFrame from "./StandardFrame"; import StandardSubtitle from "./StandardSubtitle"; import ContentFrame from "./ContentFrame"; import TabGroup from "./components/TabGroup"; -import Tab from "./components/Tab"; +import NavTab from "./components/NavTab"; import Details from "./transaction/Details"; import Logs from "./transaction/Logs"; import { RuntimeContext } from "./useRuntime"; @@ -57,11 +57,11 @@ const Transaction: React.FC = () => { {txData && ( - Overview + Overview {txData.confirmedData?.blockNumber !== undefined && ( - + Logs{txData && ` (${txData.confirmedData?.logs?.length ?? 0})`} - + )} diff --git a/src/components/Tab.tsx b/src/components/NavTab.tsx similarity index 75% rename from src/components/Tab.tsx rename to src/components/NavTab.tsx index 4e9352a..c3b6d54 100644 --- a/src/components/Tab.tsx +++ b/src/components/NavTab.tsx @@ -1,11 +1,11 @@ import React from "react"; import { NavLink } from "react-router-dom"; -type TabProps = { +type NavTabProps = { href: string; }; -const Tab: React.FC = ({ href, children }) => ( +const NavTab: React.FC = ({ href, children }) => ( = ({ href, children }) => ( ); -export default Tab; +export default NavTab;