diff --git a/apps/stats-dapp/src/containers/AuthorityDetail/AuthorityDetail.tsx b/apps/stats-dapp/src/containers/AuthorityDetail/AuthorityDetail.tsx index 9946eb837b..f9aa56528f 100644 --- a/apps/stats-dapp/src/containers/AuthorityDetail/AuthorityDetail.tsx +++ b/apps/stats-dapp/src/containers/AuthorityDetail/AuthorityDetail.tsx @@ -10,7 +10,7 @@ import { import { AuthorityQuery, AuthorityStats, - DiscreteList, + AuthoritySet, KeyGenKeyListItem, useAuthority, useAuthorityAccount, @@ -92,7 +92,7 @@ const columns: ColumnDef[] = [ /> ), cell: (props) => { - const authorities = props.getValue(); + const authorities = props.getValue(); return ( {authorities.firstElements.map((au, idx) => ( @@ -107,7 +107,7 @@ const columns: ColumnDef[] = [ columnHelper.accessor('id', { header: '', cell: (props) => { - const id = props.row.original.publicKey; + const id = props.row.original.id; return ( + + ) : ( + - + )} ); diff --git a/libs/webb-ui-components/src/components/KeyStatusCard/types.ts b/libs/webb-ui-components/src/components/KeyStatusCard/types.ts index caf149c7f8..96c06434aa 100644 --- a/libs/webb-ui-components/src/components/KeyStatusCard/types.ts +++ b/libs/webb-ui-components/src/components/KeyStatusCard/types.ts @@ -59,6 +59,10 @@ export interface KeyStatusCardDataProps { * Time instance * */ instance: ISubQlTime; + /** + * Show view details if true (default: true) false when indexing is not complete + */ + showDetails: boolean; } /** diff --git a/libs/webb-ui-components/src/components/TimeLine/TimeLineItem.tsx b/libs/webb-ui-components/src/components/TimeLine/TimeLineItem.tsx index 46360d9565..b98a1c2abd 100644 --- a/libs/webb-ui-components/src/components/TimeLine/TimeLineItem.tsx +++ b/libs/webb-ui-components/src/components/TimeLine/TimeLineItem.tsx @@ -76,7 +76,7 @@ export const TimeLineItem = forwardRef( isLoading, time, title, - txHash, + blockHash, ...props }, ref @@ -108,17 +108,17 @@ export const TimeLineItem = forwardRef( {title} - {formatRelative(time, new Date()).replace('at', '-')} + {formatRelative(time, new Date())} - {txHash && ( + {blockHash && (
diff --git a/libs/webb-ui-components/src/components/TimeLine/types.ts b/libs/webb-ui-components/src/components/TimeLine/types.ts index f7c635efca..445e74b6ec 100644 --- a/libs/webb-ui-components/src/components/TimeLine/types.ts +++ b/libs/webb-ui-components/src/components/TimeLine/types.ts @@ -12,9 +12,9 @@ export interface TimeLineItemProps extends PropsOf<'div'>, IWebbComponentBase { */ time: Date; /** - * The transaction hash + * The block hash */ - txHash: string; + blockHash: string; /** * External url to the transaction */ diff --git a/libs/webb-ui-components/src/constants/index.ts b/libs/webb-ui-components/src/constants/index.ts index b4e2bfec74..ab408e32ff 100644 --- a/libs/webb-ui-components/src/constants/index.ts +++ b/libs/webb-ui-components/src/constants/index.ts @@ -60,6 +60,8 @@ export const WEBB_DAPP_NEW_ISSUE_URL = export const WEBB_FAUCET_URL = 'https://faucet.webb.tools/'; export const STATS_DOCUS_URL = 'https://docs.webb.tools/docs/projects/stats-dapp/overview/'; +export const POLKADOT_EXPLORER_URL = + 'https://polkadot.js.org/apps/?rpc=wss://tangle-standalone-archive.webb.tools#/explorer/query/'; export const webbNetworks: webbNetworksType[] = [ {