feat: refactor

This commit is contained in:
2024-01-12 20:32:45 +07:00
parent 67c6177291
commit 0487b8a801
63 changed files with 345 additions and 777 deletions

View File

@@ -1,10 +1,4 @@
import {
RepostNote,
TextNote,
useArk,
useProfile,
useStorage,
} from "@lume/ark";
import { RepostNote, TextNote, useArk, useProfile } from "@lume/ark";
import {
ArrowLeftIcon,
ArrowRightCircleIcon,
@@ -22,7 +16,6 @@ import { NIP05 } from "../nip05";
export function UserRoute() {
const ark = useArk();
const storage = useStorage();
const navigate = useNavigate();
const { id } = useParams();
@@ -101,7 +94,7 @@ export function UserRoute() {
};
useEffect(() => {
if (storage.account.contacts.includes(id)) {
if (ark.account.contacts.includes(id)) {
setFollowed(true);
}
}, []);