chore: remove unused code

This commit is contained in:
reya
2024-06-24 11:09:32 +07:00
parent 6e5d0f0e76
commit 31bacc2646
10 changed files with 31 additions and 178 deletions

View File

@@ -1,6 +1,5 @@
import { LumeWindow, useEvent } from "@lume/system";
import { LinkIcon } from "@lume/icons";
import { useTranslation } from "react-i18next";
import { cn } from "@lume/utils";
import { User } from "@/components/user";
import { Spinner } from "@lume/ui";
@@ -12,7 +11,6 @@ export function MentionNote({
eventId: string;
openable?: boolean;
}) {
const { t } = useTranslation();
const { isLoading, isError, data } = useEvent(eventId);
if (isLoading) {
@@ -26,7 +24,7 @@ export function MentionNote({
if (isError || !data) {
return (
<div className="w-full p-3 mt-2 border rounded-xl border-black/10 dark:border-white/10">
{t("note.error")}
Event not found with your current relay set
</div>
);
}