mirror of
https://github.com/hoornet/vega.git
synced 2026-04-24 06:40:01 -07:00
Fix TypeScript errors blocking production build
- ArticleEditor: annotate map callback parameter as string - ui.ts: prefix unused get parameter with _ to silence noUnusedLocals Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,7 +55,7 @@ export function ArticleEditor() {
|
||||
content: content.trim(),
|
||||
summary: summary.trim() || undefined,
|
||||
image: image.trim() || undefined,
|
||||
tags: tags.split(",").map((t) => t.trim()).filter(Boolean),
|
||||
tags: tags.split(",").map((t: string) => t.trim()).filter(Boolean),
|
||||
});
|
||||
clearDraft();
|
||||
setPublished(true);
|
||||
|
||||
@@ -17,7 +17,7 @@ interface UIState {
|
||||
toggleSidebar: () => void;
|
||||
}
|
||||
|
||||
export const useUIStore = create<UIState>((set, get) => ({
|
||||
export const useUIStore = create<UIState>((set, _get) => ({
|
||||
currentView: "feed",
|
||||
sidebarCollapsed: false,
|
||||
selectedPubkey: null,
|
||||
|
||||
Reference in New Issue
Block a user