Migrate File navigation to tabs component.

This commit is contained in:
muzam1l
2022-07-14 16:45:15 +05:30
parent 8e49a3f5f1
commit 8cc27f20c3
6 changed files with 154 additions and 276 deletions

View File

@@ -168,15 +168,10 @@ if (process.env.NODE_ENV !== "production") {
}
if (typeof window !== "undefined") {
subscribe(state, () => {
const { accounts, active } = state;
subscribe(state.accounts, () => {
const { accounts } = state;
const accountsNoLoading = accounts.map(acc => ({ ...acc, isLoading: false }))
localStorage.setItem("hooksIdeAccounts", JSON.stringify(accountsNoLoading));
if (!state.files[active]?.compiledWatContent) {
state.activeWat = 0;
} else {
state.activeWat = active;
}
});
}
export default state