File tree Expand file tree Collapse file tree 2 files changed +70
-38
lines changed Expand file tree Collapse file tree 2 files changed +70
-38
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const Account: FC<{
65
65
helpful to register an admin address for your broker.
66
66
</ Text >
67
67
68
- < Card style = { { maxWidth : 240 } } >
68
+ < Card style = { { maxWidth : 480 } } >
69
69
{ wallet ? (
70
70
< >
71
71
< Flex gap = "1" direction = "column" >
@@ -97,29 +97,45 @@ export const Account: FC<{
97
97
< Text as = "div" size = "2" weight = "bold" >
98
98
Orderly Public Key:
99
99
</ Text >
100
- < Text as = "div" size = "2" >
101
- { publicKey ?? '-' }
102
- </ Text >
100
+ < Flex gap = "2" >
101
+ < Text as = "div" size = "2" >
102
+ { publicKey ?? '-' }
103
+ </ Text >
104
+ { publicKey && (
105
+ < IconButton
106
+ size = "1"
107
+ variant = "soft"
108
+ onClick = { async ( ) => {
109
+ if ( publicKey == null ) return ;
110
+ navigator . clipboard . writeText ( publicKey ) ;
111
+ } }
112
+ >
113
+ < CopyIcon height = "12" />
114
+ </ IconButton >
115
+ ) }
116
+ </ Flex >
103
117
</ Container >
104
118
< Container >
105
119
< Text as = "div" size = "2" weight = "bold" >
106
120
Orderly Private Key:
107
121
</ Text >
108
- < Text as = "div" size = "2" >
109
- { privateKey ? `${ privateKey . slice ( 0 , 12 ) } ...${ privateKey . slice ( - 4 ) } ` : '-' }
110
- </ Text >
111
- { orderlyKey && (
112
- < IconButton
113
- size = "1"
114
- variant = "soft"
115
- onClick = { async ( ) => {
116
- if ( privateKey == null ) return ;
117
- navigator . clipboard . writeText ( privateKey ) ;
118
- } }
119
- >
120
- < CopyIcon height = "12" />
121
- </ IconButton >
122
- ) }
122
+ < Flex gap = "2" >
123
+ < Text as = "div" size = "2" >
124
+ { privateKey ? `${ privateKey . slice ( 0 , 12 ) } ...${ privateKey . slice ( - 4 ) } ` : '-' }
125
+ </ Text >
126
+ { orderlyKey && (
127
+ < IconButton
128
+ size = "1"
129
+ variant = "soft"
130
+ onClick = { async ( ) => {
131
+ if ( privateKey == null ) return ;
132
+ navigator . clipboard . writeText ( privateKey ) ;
133
+ } }
134
+ >
135
+ < CopyIcon height = "12" />
136
+ </ IconButton >
137
+ ) }
138
+ </ Flex >
123
139
</ Container >
124
140
</ Flex >
125
141
</ >
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ export const DelegateSigner: FC<{
79
79
respective smart contract account.
80
80
</ Text >
81
81
82
- < Card style = { { maxWidth : 240 } } >
82
+ < Card style = { { maxWidth : 480 } } >
83
83
{ wallet ? (
84
84
< >
85
85
< Flex gap = "1" direction = "column" >
@@ -127,29 +127,45 @@ export const DelegateSigner: FC<{
127
127
< Text as = "div" size = "2" weight = "bold" >
128
128
Orderly Public Key:
129
129
</ Text >
130
- < Text as = "div" size = "2" >
131
- { publicKey ?? '-' }
132
- </ Text >
130
+ < Flex gap = "2" >
131
+ < Text as = "div" size = "2" >
132
+ { publicKey ?? '-' }
133
+ </ Text >
134
+ { publicKey && (
135
+ < IconButton
136
+ size = "1"
137
+ variant = "soft"
138
+ onClick = { async ( ) => {
139
+ if ( publicKey == null ) return ;
140
+ navigator . clipboard . writeText ( publicKey ) ;
141
+ } }
142
+ >
143
+ < CopyIcon height = "12" />
144
+ </ IconButton >
145
+ ) }
146
+ </ Flex >
133
147
</ Container >
134
148
< Container >
135
149
< Text as = "div" size = "2" weight = "bold" >
136
150
Orderly Private Key:
137
151
</ Text >
138
- < Text as = "div" size = "2" >
139
- { privateKey ? `${ privateKey . slice ( 0 , 12 ) } ...${ privateKey . slice ( - 4 ) } ` : '-' }
140
- </ Text >
141
- { orderlyKey && (
142
- < IconButton
143
- size = "1"
144
- variant = "soft"
145
- onClick = { async ( ) => {
146
- if ( privateKey == null ) return ;
147
- navigator . clipboard . writeText ( privateKey ) ;
148
- } }
149
- >
150
- < CopyIcon height = "12" />
151
- </ IconButton >
152
- ) }
152
+ < Flex gap = "2" >
153
+ < Text as = "div" size = "2" >
154
+ { privateKey ? `${ privateKey . slice ( 0 , 12 ) } ...${ privateKey . slice ( - 4 ) } ` : '-' }
155
+ </ Text >
156
+ { orderlyKey && (
157
+ < IconButton
158
+ size = "1"
159
+ variant = "soft"
160
+ onClick = { async ( ) => {
161
+ if ( privateKey == null ) return ;
162
+ navigator . clipboard . writeText ( privateKey ) ;
163
+ } }
164
+ >
165
+ < CopyIcon height = "12" />
166
+ </ IconButton >
167
+ ) }
168
+ </ Flex >
153
169
</ Container >
154
170
</ Flex >
155
171
</ >
You can’t perform that action at this time.
0 commit comments