no more default export
This commit is contained in:
@@ -1,19 +1,14 @@
|
||||
import ActiveAccount from "@shared/accounts/active";
|
||||
import InactiveAccount from "@shared/accounts/inactive";
|
||||
|
||||
import BellIcon from "@icons/bell";
|
||||
import PlusIcon from "@icons/plus";
|
||||
|
||||
import { ActiveAccount } from "@shared/accounts/active";
|
||||
import { InactiveAccount } from "@shared/accounts/inactive";
|
||||
import { BellIcon, PlusIcon } from "@shared/icons";
|
||||
import { APP_VERSION } from "@stores/constants";
|
||||
|
||||
import { getAccounts, getActiveAccount } from "@utils/storage";
|
||||
|
||||
import useSWR from "swr";
|
||||
|
||||
const allFetcher = () => getAccounts();
|
||||
const fetcher = () => getActiveAccount();
|
||||
|
||||
export default function MultiAccounts() {
|
||||
export function MultiAccounts() {
|
||||
const { data: accounts }: any = useSWR("allAccounts", allFetcher);
|
||||
const { data: activeAccount }: any = useSWR("activeAccount", fetcher);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user