From 365895c38983c029dae38bca755ef8bfc7684ce0 Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 15 Feb 2026 16:35:57 -0800 Subject: [PATCH] Fix build type errors in LinkButton and useMessages Co-Authored-By: Claude Opus 4.6 --- src/components/common/LinkButton.tsx | 22 ++++++++++------------ src/components/hooks/useMessages.ts | 8 ++++++-- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/common/LinkButton.tsx b/src/components/common/LinkButton.tsx index 35292ba45..990feb1c8 100644 --- a/src/components/common/LinkButton.tsx +++ b/src/components/common/LinkButton.tsx @@ -25,17 +25,15 @@ export function LinkButton({ }: LinkButtonProps) { const { dir } = useLocale(); - return ( - + const linkElement = asAnchor ? ( + + {children} + + ) : ( + + {children} + ); + + return