mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
40 lines
1.1 KiB
TypeScript
40 lines
1.1 KiB
TypeScript
import { useRouter } from 'next/router';
|
|
import React from 'react';
|
|
|
|
import getQueryParamString from 'lib/router/getQueryParamString';
|
|
import { TX } from 'stubs/tx';
|
|
import { generateListStub } from 'stubs/utils';
|
|
import AddressEntity from 'ui/shared/entities/address/AddressEntity';
|
|
import PageTitle from 'ui/shared/Page/PageTitle';
|
|
import useQueryWithPages from 'ui/shared/pagination/useQueryWithPages';
|
|
import TxsWithFrontendSorting from 'ui/txs/TxsWithFrontendSorting';
|
|
|
|
const KettleTxs = () => {
|
|
const router = useRouter();
|
|
|
|
const hash = getQueryParamString(router.query.hash);
|
|
|
|
const query = useQueryWithPages({
|
|
resourceName: 'general:txs_execution_node',
|
|
pathParams: { hash },
|
|
options: {
|
|
placeholderData: generateListStub<'general:txs_execution_node'>(TX, 50, { next_page_params: {
|
|
block_number: 9005713,
|
|
index: 5,
|
|
items_count: 50,
|
|
filter: 'validated',
|
|
} }),
|
|
},
|
|
});
|
|
|
|
return (
|
|
<>
|
|
<PageTitle title="Computor transactions" withTextAd/>
|
|
<AddressEntity address={{ hash }} mb={ 6 }/>
|
|
<TxsWithFrontendSorting query={ query }/>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default KettleTxs;
|