@@ -11,13 +11,9 @@ import { useActiveWallet } from "../../../core/hooks/wallets/useActiveWallet.js"
11
11
import { useActiveWalletChain } from "../../../core/hooks/wallets/useActiveWalletChain.js" ;
12
12
import { LoadingScreen } from "../../wallets/shared/LoadingScreen.js" ;
13
13
import { Spacer } from "../components/Spacer.js" ;
14
- import Tabs from "../components/Tabs.js" ;
15
14
import { Container , Line , ModalHeader } from "../components/basic.js" ;
16
15
import { ButtonLink } from "../components/buttons.js" ;
17
- import { CoinsIcon } from "./icons/CoinsIcon.js" ;
18
- import { FundsIcon } from "./icons/FundsIcon.js" ;
19
16
import type { ConnectLocale } from "./locale/types.js" ;
20
- import { PayTxHistoryList } from "./screens/Buy/pay-transactions/BuyTxHistory.js" ;
21
17
import { TxDetailsScreen } from "./screens/Buy/pay-transactions/TxDetailsScreen.js" ;
22
18
import type { TxStatusInfo } from "./screens/Buy/pay-transactions/useBuyTransactionsToShow.js" ;
23
19
import type { PayerInfo } from "./screens/Buy/types.js" ;
@@ -37,7 +33,7 @@ export function TransactionsScreen(props: {
37
33
locale : ConnectLocale ;
38
34
client : ThirdwebClient ;
39
35
} ) {
40
- const [ activeTab , setActiveTab ] = useState ( "Transactions" ) ;
36
+ // const [activeTab, setActiveTab] = useState("Transactions");
41
37
// For now, you can only select pay transactions (purcahses)
42
38
const [ selectedTx , setSelectedTx ] = useState < TxStatusInfo | null > ( null ) ;
43
39
@@ -84,42 +80,40 @@ export function TransactionsScreen(props: {
84
80
} }
85
81
>
86
82
< Spacer y = "md" />
87
- < Tabs
88
- options = { [
89
- {
83
+ { /* <Tabs */ }
84
+ { /* options={[ */ }
85
+ { /* {
90
86
label: (
91
87
<span className="flex gap-2">
92
88
<CoinsIcon size={iconSize.sm} /> Transactions
93
89
</span>
94
90
),
95
91
value: "Transactions",
96
- } ,
97
- {
98
- label : (
99
- < span className = "flex gap-2" >
100
- < FundsIcon size = { iconSize . sm } /> Purchases
101
- </ span >
102
- ) ,
103
- value : "Purchases" ,
104
- } ,
105
- ] }
106
- selected = { activeTab }
107
- onSelect = { setActiveTab }
108
- >
109
- { activeTab === "Purchases" && (
110
- < PayTxHistoryList
111
- client = { props . client }
112
- onSelectTx = { setSelectedTx }
113
- />
114
- ) }
115
- { activeTab === "Transactions" && (
116
- < WalletTransactionHistory
117
- locale = { props . locale }
118
- client = { props . client }
119
- address = { payer . account . address }
120
- />
121
- ) }
122
- </ Tabs >
92
+ // },
93
+ // TODO (UB): add back in once we have a way to show purchases with new service
94
+ // {
95
+ // label: (
96
+ // <span className="flex gap-2">
97
+ // <FundsIcon size={iconSize.sm} /> Purchases
98
+ // </span>
99
+ // ),
100
+ // value: "Purchases",
101
+ // },
102
+ // ] }
103
+ // selected={activeTab}
104
+ // onSelect={setActiveTab}
105
+ {/* > */ }
106
+ { /* {activeTab === "Purchases" && ( */ }
107
+ { /* <PayTxHistoryList client={props.client} onSelectTx={setSelectedTx} /> */ }
108
+ { /* )} */ }
109
+ { /* {activeTab === "Transactions" && ( */ }
110
+ < WalletTransactionHistory
111
+ locale = { props . locale }
112
+ client = { props . client }
113
+ address = { payer . account . address }
114
+ />
115
+ { /* }) } */ }
116
+ { /* </Tabs> */ }
123
117
</ Container >
124
118
< Line />
125
119
< Container p = "lg" >
0 commit comments