File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 55 import Connect from ' ./connect/Index.svelte'
66 import SwitchChain from ' ./chain/SwitchChain.svelte'
77 import ActionRequired from ' ./connect/ActionRequired.svelte'
8- import AccountCenter from ' ./account-center/Index.svelte'
98 import Notify from ' ./notify/Index.svelte'
109 import { configuration } from ' ../configuration'
1110 import type { Observable } from ' rxjs'
4342 }
4443 }
4544
45+ const accountCenterComponent = $accountCenter$ .enabled
46+ ? import (' ./account-center/Index.svelte' ).then (mod => mod .default )
47+ : Promise .resolve (null )
48+
4649 $ : sharedContainer =
4750 $accountCenter$ .enabled &&
4851 $notify$ .enabled &&
376379 ? ' margin-right: auto'
377380 : ' ' }
378381 >
379- <AccountCenter settings ={$accountCenter$ } />
382+ {#await accountCenterComponent then AccountCenter }
383+ {#if AccountCenter }
384+ <svelte:component this ={AccountCenter } settings ={$accountCenter$ } />
385+ {/if }
386+ {/await }
380387 </div >
381388 {#if $notify$ .position .includes (' top' ) && $accountCenter$ .position .includes (' top' ) && samePositionOrMobile }
382389 <Notify
410417 : ' ' }
411418 >
412419 {#if $accountCenter$ .enabled && $wallets$ .length }
413- <AccountCenter settings ={$accountCenter$ } />
420+ {#await accountCenterComponent then AccountCenter }
421+ {#if AccountCenter }
422+ <svelte:component this ={AccountCenter } settings ={$accountCenter$ } />
423+ {/if }
424+ {/await }
414425 {/if }
415426 </div >
416427 </div >
You can’t perform that action at this time.
0 commit comments