From 953c9bf11fcf47984a9eb4a8afaf0711183c6b8a Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sat, 14 Aug 2021 15:30:55 +0300 Subject: [PATCH] Add Loader --- composables/useNetwork.ts | 4 ++-- layouts/default.vue | 27 +++++++++++++++++++++++++-- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/composables/useNetwork.ts b/composables/useNetwork.ts index 8640af7..3196065 100644 --- a/composables/useNetwork.ts +++ b/composables/useNetwork.ts @@ -17,7 +17,7 @@ export const networks = [ { id: "polygon", chainId: 136, name: "Polygon", icon: PolygonSVG } ]; -export const activeNetworkId = ref(Network.Polygon); +export const activeNetworkId = ref(); export const activeNetwork = computed( () => networks.find(n => n.id === activeNetworkId.value) || networks[0] ); @@ -113,7 +113,7 @@ export function useNetwork() { onMounted( () => { //@ts-ignore - activeNetworkId.value = localStorage.getItem('network') || "polygon"; + activeNetworkId.value = localStorage.getItem('network') || "mainnet"; refreshWeb3() }) diff --git a/layouts/default.vue b/layouts/default.vue index c819b73..e0cea26 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,11 +4,33 @@ >
-
+
+
+ + + + +