mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
* add prefix to API resources * fix pw tests * refactor config * remove unnecessary prefixes in resource names * fixes * update screenshots
19 lines
695 B
TypeScript
19 lines
695 B
TypeScript
import { useRouter } from 'next/router';
|
|
import React from 'react';
|
|
|
|
import useApiQuery from 'lib/api/useApiQuery';
|
|
import getQueryParamString from 'lib/router/getQueryParamString';
|
|
import useContractTabs from 'ui/address/contract/useContractTabs';
|
|
|
|
import AddressContract from './AddressContract';
|
|
|
|
const AddressContractPwStory = () => {
|
|
const router = useRouter();
|
|
const hash = getQueryParamString(router.query.hash);
|
|
const addressQuery = useApiQuery('general:address', { pathParams: { hash } });
|
|
const { tabs } = useContractTabs(addressQuery.data, false);
|
|
return <AddressContract tabs={ tabs } shouldRender={ true } isLoading={ false }/>;
|
|
};
|
|
|
|
export default AddressContractPwStory;
|