From 15f9c3a106d680873c151d713aa854d154c4faab Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Mon, 21 Oct 2024 14:21:24 -0400 Subject: [PATCH] refactor(examples): simplify LiquidWallet configuration Update example apps to use enum syntax for `LiquidWallet` when no custom options are needed. --- examples/nuxt/plugins/walletManager.client.ts | 4 +--- examples/react-ts/src/App.tsx | 4 +--- examples/solid-ts/src/App.tsx | 4 +--- examples/vanilla-ts/src/main.ts | 4 +--- examples/vue-ts/src/main.ts | 4 +--- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/examples/nuxt/plugins/walletManager.client.ts b/examples/nuxt/plugins/walletManager.client.ts index e7e6b305..1333131a 100644 --- a/examples/nuxt/plugins/walletManager.client.ts +++ b/examples/nuxt/plugins/walletManager.client.ts @@ -17,9 +17,7 @@ export default defineNuxtPlugin((nuxtApp) => { }, WalletId.KMD, WalletId.KIBISIS, - { - id: WalletId.LIQUID - }, + WalletId.LIQUID, { id: WalletId.LUTE, options: { siteName: 'Example Site' } diff --git a/examples/react-ts/src/App.tsx b/examples/react-ts/src/App.tsx index f3002f83..7ded7944 100644 --- a/examples/react-ts/src/App.tsx +++ b/examples/react-ts/src/App.tsx @@ -19,9 +19,7 @@ const walletManager = new WalletManager({ }, WalletId.KMD, WalletId.KIBISIS, - { - id: WalletId.LIQUID - }, + WalletId.LIQUID, { id: WalletId.LUTE, options: { siteName: 'Example Site' } diff --git a/examples/solid-ts/src/App.tsx b/examples/solid-ts/src/App.tsx index 7b4a3df3..7b66aa82 100644 --- a/examples/solid-ts/src/App.tsx +++ b/examples/solid-ts/src/App.tsx @@ -19,9 +19,7 @@ const walletManager = new WalletManager({ }, WalletId.KMD, WalletId.KIBISIS, - { - id: WalletId.LIQUID - }, + WalletId.LIQUID, { id: WalletId.LUTE, options: { siteName: 'Example Site' } diff --git a/examples/vanilla-ts/src/main.ts b/examples/vanilla-ts/src/main.ts index 30d260f5..36b8254c 100644 --- a/examples/vanilla-ts/src/main.ts +++ b/examples/vanilla-ts/src/main.ts @@ -20,9 +20,7 @@ const walletManager = new WalletManager({ }, WalletId.KMD, WalletId.KIBISIS, - { - id: WalletId.LIQUID - }, + WalletId.LIQUID, { id: WalletId.LUTE, options: { siteName: 'Example Site' } diff --git a/examples/vue-ts/src/main.ts b/examples/vue-ts/src/main.ts index 4b09a8db..98295e5c 100644 --- a/examples/vue-ts/src/main.ts +++ b/examples/vue-ts/src/main.ts @@ -20,9 +20,7 @@ app.use(WalletManagerPlugin, { }, WalletId.KMD, WalletId.KIBISIS, - { - id: WalletId.LIQUID - }, + WalletId.LIQUID, { id: WalletId.LUTE, options: { siteName: 'Example Site' }