Skip to content

Commit ac07e06

Browse files
committed
Revert direct commits
1 parent 7f33ba4 commit ac07e06

File tree

2 files changed

+19
-49
lines changed

2 files changed

+19
-49
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/core",
3-
"version": "2.7.0-alpha.4",
3+
"version": "2.7.0-alpha.3",
44
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardized spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"keywords": [
66
"Ethereum",

packages/core/src/views/Index.svelte

Lines changed: 18 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
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'
89
import Notify from './notify/Index.svelte'
910
import { configuration } from '../configuration'
1011
import type { Observable } from 'rxjs'
@@ -42,14 +43,6 @@
4243
}
4344
}
4445
45-
const accountCenterComponent = $accountCenter$.enabled
46-
? import('./account-center/Index.svelte').then(mod => mod.default)
47-
: Promise.resolve(null)
48-
49-
const notifyComponent = $notify$.enabled
50-
? import('./notify/Index.svelte').then(mod => mod.default)
51-
: Promise.resolve(null)
52-
5346
$: sharedContainer =
5447
$accountCenter$.enabled &&
5548
$notify$.enabled &&
@@ -366,16 +359,11 @@
366359
: ''} "
367360
>
368361
{#if $notify$.position.includes('bottom') && $accountCenter$.position.includes('bottom') && samePositionOrMobile}
369-
{#await notifyComponent then Notify}
370-
{#if Notify}
371-
<svelte:component
372-
this={Notify}
373-
notifications={$notifications$}
374-
position={$notify$.position}
375-
{sharedContainer}
376-
/>
377-
{/if}
378-
{/await}
362+
<Notify
363+
notifications={$notifications$}
364+
position={$notify$.position}
365+
{sharedContainer}
366+
/>
379367
{/if}
380368
<div
381369
style={!$accountCenter$.expanded &&
@@ -388,23 +376,14 @@
388376
? 'margin-right: auto'
389377
: ''}
390378
>
391-
{#await accountCenterComponent then AccountCenter}
392-
{#if AccountCenter}
393-
<svelte:component this={AccountCenter} settings={$accountCenter$} />
394-
{/if}
395-
{/await}
379+
<AccountCenter settings={$accountCenter$} />
396380
</div>
397381
{#if $notify$.position.includes('top') && $accountCenter$.position.includes('top') && samePositionOrMobile}
398-
{#await notifyComponent then Notify}
399-
{#if Notify}
400-
<svelte:component
401-
this={Notify}
402-
notifications={$notifications$}
403-
position={$notify$.position}
404-
{sharedContainer}
405-
/>
406-
{/if}
407-
{/await}
382+
<Notify
383+
notifications={$notifications$}
384+
position={$notify$.position}
385+
{sharedContainer}
386+
/>
408387
{/if}
409388
</div>
410389
{/if}
@@ -431,11 +410,7 @@
431410
: ''}
432411
>
433412
{#if $accountCenter$.enabled && $wallets$.length}
434-
{#await accountCenterComponent then AccountCenter}
435-
{#if AccountCenter}
436-
<svelte:component this={AccountCenter} settings={$accountCenter$} />
437-
{/if}
438-
{/await}
413+
<AccountCenter settings={$accountCenter$} />
439414
{/if}
440415
</div>
441416
</div>
@@ -451,15 +426,10 @@
451426
? 'padding-top:0;'
452427
: ''} "
453428
>
454-
{#await notifyComponent then Notify}
455-
{#if Notify}
456-
<svelte:component
457-
this={Notify}
458-
notifications={$notifications$}
459-
position={$notify$.position}
460-
{sharedContainer}
461-
/>
462-
{/if}
463-
{/await}
429+
<Notify
430+
notifications={$notifications$}
431+
position={$notify$.position}
432+
{sharedContainer}
433+
/>
464434
</div>
465435
{/if}

0 commit comments

Comments
 (0)