File tree Expand file tree Collapse file tree 5 files changed +37
-4
lines changed
apps/dashboard/src/app/pay/components/client Expand file tree Collapse file tree 5 files changed +37
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Updates copy on the payment widgets
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export function PayPageWidget({
60
60
createWallet ( "io.metamask" ) ,
61
61
createWallet ( "io.rabby" ) ,
62
62
createWallet ( "com.okex.wallet" ) ,
63
+ createWallet ( "me.rainbow" ) ,
63
64
createWallet ( "walletConnect" ) ,
64
65
] ,
65
66
showAllWallets : true ,
Original file line number Diff line number Diff line change @@ -389,6 +389,7 @@ export function BridgeOrchestrator({
389
389
preparedQuote = { state . context . quote }
390
390
uiOptions = { uiOptions }
391
391
windowAdapter = { webWindowAdapter }
392
+ hasPaymentId = { ! ! paymentLinkId }
392
393
/>
393
394
) }
394
395
Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ export interface SuccessScreenProps {
42
42
windowAdapter : WindowAdapter ;
43
43
44
44
client : ThirdwebClient ;
45
+
46
+ /**
47
+ * Whether or not this payment is associated with a payment ID. If it does, we show a different message.
48
+ */
49
+ hasPaymentId ?: boolean ;
45
50
}
46
51
47
52
type ViewState = "success" | "detail" ;
@@ -53,6 +58,7 @@ export function SuccessScreen({
53
58
onDone,
54
59
windowAdapter,
55
60
client,
61
+ hasPaymentId = false ,
56
62
} : SuccessScreenProps ) {
57
63
const theme = useCustomTheme ( ) ;
58
64
const [ viewState , setViewState ] = useState < ViewState > ( "success" ) ;
@@ -120,7 +126,11 @@ export function SuccessScreen({
120
126
</ Text >
121
127
122
128
< Text center color = "secondaryText" size = "sm" >
123
- Your cross-chain payment has been completed successfully.
129
+ { hasPaymentId
130
+ ? "You can now close this page and return to the application."
131
+ : uiOptions . mode === "transaction"
132
+ ? "Click continue to execute your transaction."
133
+ : "Your payment has been completed successfully." }
124
134
</ Text >
125
135
</ Container >
126
136
< Spacer y = "lg" />
@@ -135,9 +145,11 @@ export function SuccessScreen({
135
145
View Payment Receipt
136
146
</ Button >
137
147
138
- < Button fullWidth onClick = { onDone } variant = "accent" >
139
- { uiOptions . mode === "transaction" ? "Continue" : "Done" }
140
- </ Button >
148
+ { ! hasPaymentId && (
149
+ < Button fullWidth onClick = { onDone } variant = "accent" >
150
+ { uiOptions . mode === "transaction" ? "Continue" : "Done" }
151
+ </ Button >
152
+ ) }
141
153
</ Container >
142
154
143
155
{ /* CSS Animations */ }
Original file line number Diff line number Diff line change @@ -222,3 +222,17 @@ export const TransactionPayment: Story = {
222
222
backgrounds : { default : "light" } ,
223
223
} ,
224
224
} ;
225
+
226
+ export const PaymentId : Story = {
227
+ args : {
228
+ client : storyClient ,
229
+ completedStatuses : mockBuyCompletedStatuses ,
230
+ hasPaymentId : true ,
231
+ preparedQuote : simpleBuyQuote ,
232
+ theme : "light" ,
233
+ uiOptions : TRANSACTION_UI_OPTIONS . contractInteraction ,
234
+ } ,
235
+ parameters : {
236
+ backgrounds : { default : "light" } ,
237
+ } ,
238
+ } ;
You can’t perform that action at this time.
0 commit comments