Skip to content

Commit

Permalink
Enhancement: Account Center Updates (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
leightkt authored May 18, 2023
1 parent a4c3308 commit 0297ebb
Show file tree
Hide file tree
Showing 13 changed files with 308 additions and 243 deletions.
16 changes: 16 additions & 0 deletions docs/src/routes/docs/[...3]modules/[...1]core/+page.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,22 @@ title: Core

This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.

:::admonition type="tip"
_note: Release 2.23.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_
```typescript
accountCenter: {
desktop: {
enabled: true,
position: 'topRight'
},
mobile: {
enabled: true,
position: 'topRight'
}
}
```
:::

## Install

Install the core module:
Expand Down
14 changes: 14 additions & 0 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@

This is the core package that contains all of the UI and logic to be able to seamlessly connect user's wallets to your app and track the state of those wallets. Onboard no longer contains any wallet specific code, so wallets need to be passed in upon initialization.

_Tip: Release 2.23.0 moves the default position of the account center from topRight to bottomRight. To reset your application to topRight, include the following when initializing onboard:_
```typescript
accountCenter: {
desktop: {
enabled: true,
position: 'topRight'
},
mobile: {
enabled: true,
position: 'topRight'
}
}
```

## Quick start

Checkout our full library of quick start examples for connecting and interacting with EVM based wallets
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@web3-onboard/core",
"version": "2.18.1-alpha.2",
"version": "2.18.1-alpha.3",
"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.",
"keywords": [
"Ethereum",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const APP_INITIAL_STATE: AppState = {
chains: [],
accountCenter: {
enabled: true,
position: 'topRight',
position: 'bottomRight',
expanded: false,
minimal: configuration.device.type === 'mobile'
},
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/views/Index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@
.container {
padding: 16px;
font-family: var(--onboard-font-family-normal, var(--font-family-normal));
width: 100%;
pointer-events: none;
touch-action: none;
}
Expand Down
Loading

0 comments on commit 0297ebb

Please sign in to comment.