Skip to content

Commit

Permalink
refactor(examples): simplify LiquidWallet configuration
Browse files Browse the repository at this point in the history
Update example apps to use enum syntax for `LiquidWallet` when no
custom options are needed.
  • Loading branch information
drichar committed Oct 21, 2024
1 parent 1f6e26c commit 15f9c3a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions examples/nuxt/plugins/walletManager.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ export default defineNuxtPlugin((nuxtApp) => {
},
WalletId.KMD,
WalletId.KIBISIS,
{
id: WalletId.LIQUID
},
WalletId.LIQUID,
{
id: WalletId.LUTE,
options: { siteName: 'Example Site' }
Expand Down
4 changes: 1 addition & 3 deletions examples/react-ts/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const walletManager = new WalletManager({
},
WalletId.KMD,
WalletId.KIBISIS,
{
id: WalletId.LIQUID
},
WalletId.LIQUID,
{
id: WalletId.LUTE,
options: { siteName: 'Example Site' }
Expand Down
4 changes: 1 addition & 3 deletions examples/solid-ts/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ const walletManager = new WalletManager({
},
WalletId.KMD,
WalletId.KIBISIS,
{
id: WalletId.LIQUID
},
WalletId.LIQUID,
{
id: WalletId.LUTE,
options: { siteName: 'Example Site' }
Expand Down
4 changes: 1 addition & 3 deletions examples/vanilla-ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ const walletManager = new WalletManager({
},
WalletId.KMD,
WalletId.KIBISIS,
{
id: WalletId.LIQUID
},
WalletId.LIQUID,
{
id: WalletId.LUTE,
options: { siteName: 'Example Site' }
Expand Down
4 changes: 1 addition & 3 deletions examples/vue-ts/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ app.use(WalletManagerPlugin, {
},
WalletId.KMD,
WalletId.KIBISIS,
{
id: WalletId.LIQUID
},
WalletId.LIQUID,
{
id: WalletId.LUTE,
options: { siteName: 'Example Site' }
Expand Down

0 comments on commit 15f9c3a

Please sign in to comment.