@@ -3,21 +3,22 @@ import { cn } from '@/features/common/utils'
33import { useMemo } from 'react'
44import { AccountAssetHeld } from './account-assets-held'
55import { Account } from '../models'
6-
7- const accountLiveTransactionsTabId = 'live-transactions'
8- const accountHistoricalTransactionsTabId = 'historical-transactions'
9- const accountHeldAssetsTabId = 'held-assets'
10- const accountCreatedAssetsTabId = 'created-assets'
11- const accountCreatedApplicationsTabId = 'created-applications'
12- const accountOptedApplicationsTabId = 'opted-applications'
13-
14- export const accountDetailsLabel = 'View account Details'
15- export const accountLiveTransactionsTabLabel = 'Live Transactions'
16- export const accountHistoricalTransactionsTabLabel = 'Historical Transactions'
17- export const accountHeldAssetsTabLabel = 'Held Assets'
18- export const accountCreatedAssetsTabLabel = 'Created Assets'
19- export const accountCreatedApplicationsTabLabel = 'Created Applications'
20- export const accountOptedApplicationsTabLabel = 'Opted Applications'
6+ import { AccountTransactionHistory } from './account-transaction-history'
7+ import {
8+ accountActivityLabel ,
9+ accountLiveTransactionsTabId ,
10+ accountCreatedApplicationsTabId ,
11+ accountCreatedAssetsTabId ,
12+ accountHeldAssetsTabId ,
13+ accountHistoricalTransactionsTabId ,
14+ accountOptedApplicationsTabId ,
15+ accountLiveTransactionsTabLabel ,
16+ accountHistoricalTransactionsTabLabel ,
17+ accountHeldAssetsTabLabel ,
18+ accountCreatedAssetsTabLabel ,
19+ accountCreatedApplicationsTabLabel ,
20+ accountOptedApplicationsTabLabel ,
21+ } from './labels'
2122
2223type Props = {
2324 account : Account
@@ -34,7 +35,7 @@ export function AccountActivityTabs({ account }: Props) {
3435 {
3536 id : accountHistoricalTransactionsTabId ,
3637 label : accountHistoricalTransactionsTabLabel ,
37- children : '' ,
38+ children : < AccountTransactionHistory address = { account . address } /> ,
3839 } ,
3940 {
4041 id : accountHeldAssetsTabId ,
@@ -61,7 +62,7 @@ export function AccountActivityTabs({ account }: Props) {
6162 )
6263 return (
6364 < Tabs defaultValue = { accountLiveTransactionsTabId } >
64- < TabsList aria-label = { accountDetailsLabel } >
65+ < TabsList aria-label = { accountActivityLabel } >
6566 { tabs . map ( ( tab ) => (
6667 < TabsTrigger key = { tab . id } className = { cn ( 'data-[state=active]:border-primary data-[state=active]:border-b-2 w-44' ) } value = { tab . id } >
6768 { tab . label }
0 commit comments