Commit 9fa8a76b authored by isstuev's avatar isstuev

some fix

parent 6831d426
...@@ -19,7 +19,7 @@ const AddressTagsPage: NextPage<Props> = ({ pageParams }: Props) => { ...@@ -19,7 +19,7 @@ const AddressTagsPage: NextPage<Props> = ({ pageParams }: Props) => {
return ( return (
<> <>
<Head><title>{ title }</title></Head> <Head><title>{ title }</title></Head>
<Transactions tab="mined"/> <Transactions tab="validated"/>
</> </>
); );
}; };
......
...@@ -14,7 +14,7 @@ import PageHeader from 'ui/shared/PageHeader'; ...@@ -14,7 +14,7 @@ import PageHeader from 'ui/shared/PageHeader';
import TxsPending from 'ui/txs/TxsPending'; import TxsPending from 'ui/txs/TxsPending';
import TxsValidated from 'ui/txs/TxsValidated'; import TxsValidated from 'ui/txs/TxsValidated';
const TABS = [ 'mined', 'pending' ] as const; const TABS = [ 'validated', 'pending' ] as const;
type TabName = typeof TABS[number]; type TabName = typeof TABS[number];
...@@ -29,7 +29,7 @@ const Transactions = ({ tab }: Props) => { ...@@ -29,7 +29,7 @@ const Transactions = ({ tab }: Props) => {
const onChangeTab = useCallback((index: number) => { const onChangeTab = useCallback((index: number) => {
setActiveTab(TABS[index]); 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); history.replaceState(history.state, '', newUrl);
}, [ link ]); }, [ link ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment