update lib storage

This commit is contained in:
Ren Amamiya
2023-06-10 08:01:13 +07:00
parent 61ab719a2f
commit 3f85ef6224
18 changed files with 18 additions and 18 deletions

View File

@@ -1,4 +1,5 @@
import { Dialog, Transition } from "@headlessui/react";
import { createChannel } from "@libs/storage";
import { NDKEvent, NDKPrivateKeySigner } from "@nostr-dev-kit/ndk";
import { AvatarUploader } from "@shared/avatarUploader";
import { CancelIcon, PlusIcon } from "@shared/icons";
@@ -7,7 +8,6 @@ import { RelayContext } from "@shared/relayProvider";
import { useActiveAccount } from "@stores/accounts";
import { DEFAULT_AVATAR } from "@stores/constants";
import { dateToUnix } from "@utils/date";
import { createChannel } from "@utils/storage";
import { Fragment, useContext, useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { navigate } from "vite-plugin-ssr/client/router";

View File

@@ -9,7 +9,7 @@ export function MutedItem({ data }: { data: any }) {
const [status, setStatus] = useState(data.status);
const unmute = async () => {
const { updateItemInBlacklist } = await import("@utils/storage");
const { updateItemInBlacklist } = await import("@libs/storage");
const res = await updateItemInBlacklist(data.content, 0);
if (res) {
setStatus(0);
@@ -17,7 +17,7 @@ export function MutedItem({ data }: { data: any }) {
};
const mute = async () => {
const { updateItemInBlacklist } = await import("@utils/storage");
const { updateItemInBlacklist } = await import("@libs/storage");
const res = await updateItemInBlacklist(data.content, 1);
if (res) {
setStatus(1);

View File

@@ -1,4 +1,5 @@
import { Dialog, Transition } from "@headlessui/react";
import { getChannel } from "@libs/storage";
import { NDKEvent, NDKPrivateKeySigner } from "@nostr-dev-kit/ndk";
import { AvatarUploader } from "@shared/avatarUploader";
import { CancelIcon, EditIcon } from "@shared/icons";
@@ -7,7 +8,6 @@ import { RelayContext } from "@shared/relayProvider";
import { useActiveAccount } from "@stores/accounts";
import { DEFAULT_AVATAR } from "@stores/constants";
import { dateToUnix } from "@utils/date";
import { getChannel } from "@utils/storage";
import { Fragment, useContext, useEffect, useState } from "react";
import { useForm } from "react-hook-form";