From 80ef21c8d048f4350fad6fe3d291fc7b699b4e74 Mon Sep 17 00:00:00 2001 From: Shirone Date: Sun, 25 Jan 2026 14:07:17 +0100 Subject: [PATCH] refactor(ui): use Button loading prop instead of manual Spinner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address PR #698 review feedback from Gemini Code Assist to use the Button component's built-in loading prop instead of manually rendering Spinner components. The Button component already handles spinner display with correct variant selection (foreground for default/destructive buttons, primary for others), so this simplifies the code and aligns with component abstractions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../components/issue-detail-panel.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/apps/ui/src/components/views/github-issues-view/components/issue-detail-panel.tsx b/apps/ui/src/components/views/github-issues-view/components/issue-detail-panel.tsx index dbf38e96..c44dbbe2 100644 --- a/apps/ui/src/components/views/github-issues-view/components/issue-detail-panel.tsx +++ b/apps/ui/src/components/views/github-issues-view/components/issue-detail-panel.tsx @@ -86,8 +86,7 @@ export function IssueDetailPanel({ {(() => { if (isValidating) { return ( - ); @@ -335,15 +334,9 @@ export function IssueDetailPanel({ className="w-full" onClick={loadMore} disabled={loadingMore} + loading={loadingMore} > - {loadingMore ? ( - <> - - Loading... - - ) : ( - 'Load More Comments' - )} + {loadingMore ? 'Loading...' : 'Load More Comments'} )}