@@ -30,6 +30,7 @@ import {
30
30
BetaVersionMiniBanner ,
31
31
Ruller
32
32
} from '@/modules/ui-components'
33
+ import styled from 'styled-components/native'
33
34
34
35
export default function Page ( ) {
35
36
const dispatch = useAppDispatch ( )
@@ -187,7 +188,7 @@ export default function Page() {
187
188
< FormItem label = "Callback" value = { callback } />
188
189
< Ruller />
189
190
< FormItem label = "Address" >
190
- < Text . LinkText weight = "500" style = { { flexShrink : 1 , textAlign : 'right' } } > { `${ bech32Address } ` } </ Text . LinkText >
191
+ < LinkJsonText style = { { textAlign : 'right' } } > { `${ bech32Address } ` } </ LinkJsonText >
191
192
</ FormItem >
192
193
< Ruller />
193
194
< FormItem label = "Account Name" value = { JSON . stringify ( keyInfo ?. name ) } />
@@ -199,31 +200,23 @@ export default function Page() {
199
200
200
201
< HiddenGroup >
201
202
< FormItem label = "Raw Tx Data" >
202
- < Text . LinkText weight = "500" style = { { flexShrink : 1 } } >
203
- { txInput }
204
- </ Text . LinkText >
203
+ < LinkJsonText > { txInput } </ LinkJsonText >
204
+ </ FormItem >
205
+ < Ruller />
206
+ < FormItem label = "Raw Signed Data" >
207
+ { signedTx ? < LinkJsonText > { signedTx ?. toString ( ) } </ LinkJsonText > : < ActivityIndicator /> }
205
208
</ FormItem >
206
209
{ /* <FormItem label="Session wanted">
207
210
<TextBodyWhite>{JSON.stringify(sessionWanted)}</TextBodyWhite>
208
211
</FormItem>
209
-
210
212
<Ruller />
211
-
212
213
<FormItem label="Session">
213
214
<TextBodyWhite>{session ? JSON.stringify(session) : 'undefined'}</TextBodyWhite>
214
215
</FormItem>
215
-
216
216
<Ruller />
217
-
218
217
<FormItem label="Realms Allowed">
219
218
<TextBodyWhite>gno.land/r/berty/social</TextBodyWhite>
220
219
</FormItem>*/ }
221
-
222
- < Ruller />
223
-
224
- < FormItem label = "Raw Signed Data" >
225
- { signedTx ? < Text . Body_Bold > { signedTx ?. toString ( ) } </ Text . Body_Bold > : < ActivityIndicator /> }
226
- </ FormItem >
227
220
</ HiddenGroup >
228
221
</ ScrollView >
229
222
</ >
@@ -233,6 +226,11 @@ export default function Page() {
233
226
)
234
227
}
235
228
229
+ const LinkJsonText = styled ( Text . LinkText ) `
230
+ weight: 500;
231
+ flex-shrink: 1;
232
+ `
233
+
236
234
const HiddenGroup = ( { children } : React . PropsWithChildren ) => {
237
235
const [ visible , setVisible ] = useState ( false )
238
236
0 commit comments