Rename, since the /:addressorName now may not route to just address search results
This commit is contained in:
parent
80ef1cf820
commit
af15aaba0c
|
@ -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;
|
|
@ -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 = () => {
|
|||
<Route path="tx/:txhash/*" element={<Transaction />} />
|
||||
<Route
|
||||
path="address/:addressOrName/*"
|
||||
element={<AddressTransactions />}
|
||||
element={<Address />}
|
||||
/>
|
||||
<Route path="*" element={<Home />} />
|
||||
</Route>
|
||||
|
|
Loading…
Reference in New Issue