@@ -62,7 +62,7 @@ pub(crate) fn Spend() -> Element {
62
62
63
63
div { class: "sm:col-span-3" ,
64
64
label {
65
- r#for: "npub1 " ,
65
+ r#for: "npub " ,
66
66
class: "block text-sm font-medium text-gray-700" ,
67
67
"Your Nostr Public Key (npub)"
68
68
}
@@ -90,15 +90,15 @@ pub(crate) fn Spend() -> Element {
90
90
91
91
div { class: "sm:col-span-3" ,
92
92
label {
93
- r#for: "txid" ,
93
+ r#for: "escrow- txid" ,
94
94
class: "block text-sm font-medium text-gray-700" ,
95
95
"Escrow Resolution Transaction ID"
96
96
}
97
97
div { class: "mt-1" ,
98
98
input {
99
99
r#type: "text" ,
100
- name: "txid" ,
101
- id: "txid" ,
100
+ name: "escrow- txid" ,
101
+ id: "escrow- txid" ,
102
102
class: "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md p-2 border" ,
103
103
placeholder: "txid..." ,
104
104
oninput: move |event| {
@@ -110,20 +110,18 @@ pub(crate) fn Spend() -> Element {
110
110
}
111
111
}
112
112
113
- div { class: "sm: col-span-3" ,
113
+ div { class: "sm:col-span-3" ,
114
114
label {
115
115
r#for: "destination-address" ,
116
116
class: "block text-sm font-medium text-gray-700" ,
117
117
"Your Destination Address"
118
118
}
119
119
div { class: "mt-1" ,
120
120
input {
121
- id: "destination-address" ,
122
121
r#type: "text" ,
123
- name: "txid " ,
124
- id: "txid " ,
122
+ name: "destination-address " ,
123
+ id: "destination-address " ,
125
124
class: "shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block w-full sm:text-sm border-gray-300 rounded-md p-2 border" ,
126
- class: "mt-1 text-sm text-gray-900 break-all bg-gray-50 p-3 rounded" ,
127
125
placeholder: "Enter your destination address..." ,
128
126
oninput: move |event| {
129
127
#[ cfg( debug_assertions) ]
@@ -185,18 +183,19 @@ pub(crate) fn Spend() -> Element {
185
183
}
186
184
}
187
185
}
188
- div { class: "sm: col-span-3" ,
189
- dt { class: "text-sm font-medium text-gray-900" ,
186
+
187
+ div { class: "sm:col-span-3" ,
188
+ label { class: "block text-sm font-medium text-gray-700" ,
190
189
"Your Resolution Address"
191
190
}
192
- dd {
193
- id : "buyer-address " ,
194
- class : "mt-1 text-sm text-gray-900 break-all bg-gray-50 p-3 rounded" ,
195
- {
196
- if derived_address . read ( ) . is_empty ( ) {
197
- "bc1p..." . to_string ( )
198
- } else {
199
- derived_address . read ( ) . clone ( )
191
+ div { class : "mt-1" ,
192
+ div { class : "text-sm text-gray-900 break-all bg-gray-50 p-3 rounded " ,
193
+ {
194
+ if derived_address . read ( ) . is_empty ( ) {
195
+ "bc1p..." . to_string ( )
196
+ } else {
197
+ derived_address . read ( ) . clone ( )
198
+ }
200
199
}
201
200
}
202
201
}
@@ -290,23 +289,28 @@ pub(crate) fn Spend() -> Element {
290
289
"Signed Transaction"
291
290
}
292
291
293
- div { class: "mt-4 grid grid-cols-3 gap-y-6 gap-x-4 sm:grid-cols-2" ,
294
- div { class: "col-span-3" ,
292
+ div { class: "mt-5 border-t border-gray-200 pt-5" ,
293
+ div { class: "sm:col-span-6" ,
294
+ label {
295
+ r#for: "signed-tx" ,
296
+ class: "block text-sm font-medium text-gray-500" ,
297
+ "Signed Transaction"
298
+ }
295
299
div { class: "mt-1" ,
296
300
textarea {
297
301
id: "signed-tx" ,
298
302
readonly: "true" ,
299
303
rows: "4" ,
300
304
class: "shadow-sm block w-full sm:text-sm border-gray-300 rounded-md p-2 border bg-gray-50" ,
301
- placeholder : signed_tx_str,
305
+ value : signed_tx_str,
302
306
}
303
307
}
304
308
}
305
309
}
306
310
307
311
div { class: "mt-5 flex flex-col space-y-3 sm:flex-row sm:space-y-0 sm:space-x-3" ,
308
312
CopyButton {
309
- text: "Signature " ,
313
+ text: "Transaction " ,
310
314
clipboard_text: signed_tx_str,
311
315
}
312
316
ContinueButton {
0 commit comments