File tree Expand file tree Collapse file tree 5 files changed +47
-4
lines changed Expand file tree Collapse file tree 5 files changed +47
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @reown/appkit-scaffold-ui ' : patch
3
+ ' pay-test-exchange ' : patch
4
+ ' @reown/appkit-adapter-bitcoin ' : patch
5
+ ' @reown/appkit-adapter-ethers ' : patch
6
+ ' @reown/appkit-adapter-ethers5 ' : patch
7
+ ' @reown/appkit-adapter-solana ' : patch
8
+ ' @reown/appkit-adapter-wagmi ' : patch
9
+ ' @reown/appkit ' : patch
10
+ ' @reown/appkit-utils ' : patch
11
+ ' @reown/appkit-cdn ' : patch
12
+ ' @reown/appkit-cli ' : patch
13
+ ' @reown/appkit-codemod ' : patch
14
+ ' @reown/appkit-common ' : patch
15
+ ' @reown/appkit-controllers ' : patch
16
+ ' @reown/appkit-core ' : patch
17
+ ' @reown/appkit-experimental ' : patch
18
+ ' @reown/appkit-pay ' : patch
19
+ ' @reown/appkit-polyfills ' : patch
20
+ ' @reown/appkit-siwe ' : patch
21
+ ' @reown/appkit-siwx ' : patch
22
+ ' @reown/appkit-testing ' : patch
23
+ ' @reown/appkit-ui ' : patch
24
+ ' @reown/appkit-universal-connector ' : patch
25
+ ' @reown/appkit-wallet ' : patch
26
+ ' @reown/appkit-wallet-button ' : patch
27
+ ---
28
+
29
+ Fixed an issue where the question mark icon in the header was not displayed correctly
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
15
15
} from '@reown/appkit-controllers'
16
16
import { customElement } from '@reown/appkit-ui'
17
17
import '@reown/appkit-ui/wui-flex'
18
- import '@reown/appkit-ui/wui-icon-link '
18
+ import '@reown/appkit-ui/wui-icon-button '
19
19
import '@reown/appkit-ui/wui-select'
20
20
import '@reown/appkit-ui/wui-tag'
21
21
import '@reown/appkit-ui/wui-text'
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default css`
33
33
animation-delay : 0ms , 200ms ;
34
34
}
35
35
36
- wui-icon-link [data-hidden = 'true' ] {
36
+ wui-icon-button [data-hidden = 'true' ] {
37
37
opacity : 0 !important ;
38
38
pointer-events : none;
39
39
}
Original file line number Diff line number Diff line change 1
1
import { LitElement , html } from 'lit'
2
- import { property } from 'lit/decorators.js'
2
+ import { property , state } from 'lit/decorators.js'
3
3
import { ifDefined } from 'lit/directives/if-defined.js'
4
4
5
5
import { type CaipNetwork } from '@reown/appkit-common'
@@ -20,6 +20,8 @@ export class W3mWalletSendDetails extends LitElement {
20
20
21
21
@property ( { type : Object } ) public caipNetwork ?: CaipNetwork
22
22
23
+ @state ( ) private params = RouterController . state . data ?. send
24
+
23
25
// -- Render -------------------------------------------- //
24
26
public override render ( ) {
25
27
return html ` < wui-text variant ="sm-regular " color ="secondary "> Details</ wui-text >
@@ -53,7 +55,7 @@ export class W3mWalletSendDetails extends LitElement {
53
55
}
54
56
55
57
private onNetworkClick ( network ?: CaipNetwork ) {
56
- if ( network ) {
58
+ if ( network && ! this . params ) {
57
59
RouterController . push ( 'Networks' , { network } )
58
60
}
59
61
}
Original file line number Diff line number Diff line change @@ -232,6 +232,18 @@ describe('W3mHeader', () => {
232
232
233
233
expect ( trackSpy ) . toHaveBeenCalledWith ( { type : 'track' , event : 'CLICK_WALLET_HELP' } )
234
234
} )
235
+
236
+ it ( 'should hide help button when not in Connect view' , async ( ) => {
237
+ RouterController . state . view = 'Account'
238
+ OptionsController . state . enableNetworkSwitch = false
239
+ element . requestUpdate ( )
240
+ await element . updateComplete
241
+ await elementUpdated ( element )
242
+
243
+ const helpButton = element . shadowRoot ?. querySelector ( 'wui-icon-button[icon="helpCircle"]' )
244
+ expect ( helpButton ) . toBeTruthy ( )
245
+ expect ( helpButton ?. getAttribute ( 'data-hidden' ) ) . toBe ( 'true' )
246
+ } )
235
247
} )
236
248
237
249
describe ( 'Network Selector Visibility' , ( ) => {
You can’t perform that action at this time.
0 commit comments