diff --git a/src/AddressTransactions.tsx b/src/Address.tsx similarity index 98% rename from src/AddressTransactions.tsx rename to src/Address.tsx index d7222c0..eb0213d 100644 --- a/src/AddressTransactions.tsx +++ b/src/Address.tsx @@ -25,7 +25,7 @@ import { useMultipleMetadata } from "./sourcify/useSourcify"; import { ChecksummedAddress } from "./types"; import { useAddressesWithCode } from "./useErigonHooks"; -const AddressTransactions: React.FC = () => { +const Address: React.FC = () => { const { provider } = useContext(RuntimeContext); const { addressOrName, direction } = useParams(); if (addressOrName === undefined) { @@ -175,4 +175,4 @@ const AddressTransactions: React.FC = () => { ); }; -export default AddressTransactions; +export default Address; diff --git a/src/App.tsx b/src/App.tsx index f31fff6..aae4ab8 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,11 +17,9 @@ const BlockTransactions = React.lazy( /* webpackChunkName: "blocktxs", webpackPrefetch: true */ "./BlockTransactions" ) ); -const AddressTransactions = React.lazy( +const Address = React.lazy( () => - import( - /* webpackChunkName: "address", webpackPrefetch: true */ "./AddressTransactions" - ) + import(/* webpackChunkName: "address", webpackPrefetch: true */ "./Address") ); const Transaction = React.lazy( () => @@ -61,7 +59,7 @@ const App = () => { } /> } + element={
} /> } />