@@ -2,7 +2,7 @@ import React, { useMemo } from 'react'
22
33import { BareProps } from '@/types/page'
44import { Table , Pagination , TableHeader , TableColumn , TableBody , TableRow , TableCell , getKeyValue } from '@heroui/react'
5- import { formatHash , timeAgo } from '@/utils/text'
5+ import { formatHash , getThemeColor , timeAgo } from '@/utils/text'
66import { getExtrinsicListParams , unwrap , useExtrinsics } from '@/utils/api'
77import { PAGE_SIZE } from '@/utils/const'
88import { Link } from '../link'
@@ -31,7 +31,7 @@ const Component: React.FC<Props> = ({ children, className, args }) => {
3131 bottomContent = {
3232 < div className = "flex w-full justify-center" >
3333 { pages > 0 && (
34- < Pagination isCompact showControls showShadow initialPage = { 1 } page = { page } total = { pages } onChange = { ( page ) => setPage ( page ) } />
34+ < Pagination color = { getThemeColor ( true ) } isCompact showControls showShadow initialPage = { 1 } page = { page } total = { pages } onChange = { ( page ) => setPage ( page ) } />
3535 ) }
3636 </ div >
3737 }
@@ -53,13 +53,13 @@ const Component: React.FC<Props> = ({ children, className, args }) => {
5353 if ( columnKey === 'extrinsic_index' ) {
5454 return (
5555 < TableCell >
56- < Link href = { `/extrinsic/${ item . extrinsic_index } ` } > { item . extrinsic_index } </ Link >
56+ < Link color = { getThemeColor ( true ) } href = { `/sub /extrinsic/${ item . extrinsic_index } ` } > { item . extrinsic_index } </ Link >
5757 </ TableCell >
5858 )
5959 } else if ( columnKey === 'extrinsic_hash' ) {
6060 return (
6161 < TableCell >
62- < Link href = { `/extrinsic/${ item . extrinsic_hash } ` } > { formatHash ( item . extrinsic_hash ) } </ Link >
62+ < Link color = { getThemeColor ( true ) } href = { `/sub /extrinsic/${ item . extrinsic_hash } ` } > { formatHash ( item . extrinsic_hash ) } </ Link >
6363 </ TableCell >
6464 )
6565 } else if ( columnKey === 'success' ) {
0 commit comments