NF-Tunes
@@ -375,9 +379,9 @@ export const NFTunes = () => {
)}
{!mvxNetworkSelected && (
-
- {shownSolDataNfts.length > 0 ? (
- shownSolDataNfts.map((dataNft, index) => {
+
+ {shownSolAppDataNfts.length > 0 ? (
+ shownSolAppDataNfts.map((dataNft, index) => {
return (
{
<>
{!mvxNetworkSelected && viewDataRes && !viewDataRes.error && currentIndex > -1 && (
void;
-}
-
-export const useLocalStorageStore = create((set) => ({
- appVersion: import.meta.env.VITE_APP_VERSION,
- setAppVersion: (newAppVersion) => set({ appVersion: newAppVersion }),
-}));
+import { create } from "zustand";
+
+interface LocalStorageStore {
+ appVersion: string | undefined;
+ setAppVersion: (newAppVersion: string | undefined) => void;
+ defaultChain: string;
+ setDefaultChain: (newDefaultChain: string) => void;
+}
+
+export const useLocalStorageStore = create((set) => ({
+ appVersion: import.meta.env.VITE_APP_VERSION,
+ setAppVersion: (newAppVersion) => set({ appVersion: newAppVersion }),
+ defaultChain: localStorage.getItem("defaultChain") ?? "multiversx",
+ setDefaultChain: (newDefaultChain) => {
+ localStorage.setItem("defaultChain", newDefaultChain);
+ set({ defaultChain: newDefaultChain });
+ },
+}));