wip: migrate to zustand

This commit is contained in:
Ren Amamiya
2023-05-26 14:45:12 +07:00
parent 5c7b18bf29
commit 671b857077
34 changed files with 494 additions and 530 deletions

View File

@@ -1,14 +0,0 @@
import { getActiveAccount } from "@utils/storage";
import useSWR from "swr";
const fetcher = () => getActiveAccount();
export function useActiveAccount() {
const { data, error, isLoading } = useSWR("activeAcount", fetcher);
return {
account: data,
isLoading,
isError: error,
};
}