Fix contract tab
This commit is contained in:
parent
3bfe0d0055
commit
83ce3ab734
@ -126,7 +126,13 @@ const AddressTransactions: React.FC = () => {
|
||||
<Tab.Panels>
|
||||
<Routes>
|
||||
<Route
|
||||
path="*"
|
||||
index
|
||||
element={
|
||||
<AddressTransactionResults address={checksummedAddress} />
|
||||
}
|
||||
/>
|
||||
<Route
|
||||
path="txs/:direction"
|
||||
element={
|
||||
<AddressTransactionResults address={checksummedAddress} />
|
||||
}
|
||||
|
@ -60,11 +60,7 @@ const App = () => {
|
||||
/>
|
||||
<Route path="tx/:txhash/*" element={<Transaction />} />
|
||||
<Route
|
||||
path="address/:addressOrName"
|
||||
element={<AddressTransactions />}
|
||||
/>
|
||||
<Route
|
||||
path="address/:addressOrName/:direction"
|
||||
path="address/:addressOrName/*"
|
||||
element={<AddressTransactions />}
|
||||
/>
|
||||
<Route path="*" element={<Home />} />
|
||||
|
@ -26,7 +26,7 @@ const UndefinedPageButton: React.FC<UndefinedPageButtonProps> = ({
|
||||
return (
|
||||
<NavLink
|
||||
className="transition-colors bg-link-blue bg-opacity-10 text-link-blue hover:bg-opacity-100 hover:text-white disabled:bg-link-blue disabled:text-gray-400 disabled:cursor-default rounded-lg px-3 py-2 text-xs"
|
||||
to={`/address/${address}/${direction}${
|
||||
to={`/address/${address}/txs/${direction}${
|
||||
direction === "prev" || direction === "next" ? `?h=${hash}` : ""
|
||||
}`}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user