fix: remove unused imports and variables

- Remove unused Badge import from ComposeDialog
- Remove unused match variable from extractMentionsFromContent
- Simplify placeholder function body
This commit is contained in:
Claude
2026-01-12 16:02:16 +00:00
parent 4558c6039b
commit 6d9f4fbdf0
2 changed files with 3 additions and 11 deletions

View File

@@ -10,7 +10,6 @@ import {
} from "@/components/ui/dialog";
import { Button } from "@/components/ui/button";
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { Badge } from "@/components/ui/badge";
import {
MentionEditor,
type MentionEditorHandle,

View File

@@ -183,16 +183,9 @@ export function extractMentionsFromContent(content: string): string[] {
const pubkeys = new Set<string>();
for (const match of matches) {
try {
// Remove "nostr:" prefix
// TODO: decode npub to pubkey
// The MentionEditor already handles encoding, so we can extract from tags instead
// This function is a placeholder for future enhancement
} catch {
// Skip invalid npubs
}
}
// TODO: decode npub to pubkey from matches
// The MentionEditor already handles encoding, so we can extract from tags instead
// This function is a placeholder for future enhancement
return Array.from(pubkeys);
}