This commit is contained in:
isstuev
2022-09-26 17:01:46 +03:00
parent 75e6d0429c
commit d5d5ee2e1a
2 changed files with 3 additions and 3 deletions
@@ -19,7 +19,7 @@ const AddressTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
return (
<>
<Head><title>{ title }</title></Head>
<Transactions tab="mined"/>
<Transactions tab="validated"/>
</>
);
};
+2 -2
View File
@@ -14,7 +14,7 @@ import PageHeader from 'ui/shared/PageHeader';
import TxsPending from 'ui/txs/TxsPending';
import TxsValidated from 'ui/txs/TxsValidated';
const TABS = [ 'mined', 'pending' ] as const;
const TABS = [ 'validated', 'pending' ] as const;
type TabName = typeof TABS[number];
@@ -29,7 +29,7 @@ const Transactions = ({ tab }: Props) => {
const onChangeTab = useCallback((index: number) => {
setActiveTab(TABS[index]);
const newUrl = link(TABS[index] === 'mined' ? 'txs_validated' : 'txs_pending');
const newUrl = link(TABS[index] === 'validated' ? 'txs_validated' : 'txs_pending');
history.replaceState(history.state, '', newUrl);
}, [ link ]);