diff --git a/resources/js/components/UserNavbar.vue b/resources/js/components/UserNavbar.vue
index 9c82d4c..370a397 100644
--- a/resources/js/components/UserNavbar.vue
+++ b/resources/js/components/UserNavbar.vue
@@ -24,7 +24,9 @@
- Loading
+
+
+
@@ -61,6 +63,7 @@ import WalletConnectButton from '~/components/WalletConnectButton.vue';
import { WalletConnectModalSign } from '@walletconnect/modal-sign-html';
import { getAppMetadata } from '@walletconnect/utils';
import { SessionTypes } from '@walletconnect/types';
+import LoadingCircle from '~/components/LoadingCircle.vue';
const open = ref(false);
const help = ref(false);
@@ -70,22 +73,7 @@ const appStore = useAppStore();
const navigations = computed(() => appStore.navigations);
const connectWallet = async () => {
- const walletConnect = new WalletConnectModalSign({
- projectId: 'a4b92f550ab3039f7e084a879882bc96',
- metadata: getAppMetadata(),
- modalOptions: {
- themeMode: 'light',
- explorerRecommendedWalletIds: ['bdc9433ffdaee55d31737d83b931caa1f17e30666f5b8e03eea794bac960eb4a'],
- enableExplorer: true,
- walletImages: {},
- themeVariables: {
- '--wcm-background-color': '#7567CE',
- '--wcm-accent-color': '#7567CE',
- '--wcm-accent-fill-color': '#FFFFFF',
- },
- },
- });
-
+ const walletConnect = appStore.getWeb3Modal();
let session: SessionTypes.Struct | undefined = await walletConnect.getSession();
if (!session) {
diff --git a/resources/js/components/WalletConnectButton.vue b/resources/js/components/WalletConnectButton.vue
index 9b752e7..2a0ff0b 100644
--- a/resources/js/components/WalletConnectButton.vue
+++ b/resources/js/components/WalletConnectButton.vue
@@ -5,29 +5,11 @@