mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
refactor(ui): remove redundant disabled props when using Button loading
The Button component internally sets disabled when loading=true, so explicit disabled props are redundant and can be removed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -86,7 +86,7 @@ export function IssueDetailPanel({
|
|||||||
{(() => {
|
{(() => {
|
||||||
if (isValidating) {
|
if (isValidating) {
|
||||||
return (
|
return (
|
||||||
<Button variant="default" size="sm" disabled loading>
|
<Button variant="default" size="sm" loading>
|
||||||
Validating...
|
Validating...
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
@@ -333,7 +333,6 @@ export function IssueDetailPanel({
|
|||||||
size="sm"
|
size="sm"
|
||||||
className="w-full"
|
className="w-full"
|
||||||
onClick={loadMore}
|
onClick={loadMore}
|
||||||
disabled={loadingMore}
|
|
||||||
loading={loadingMore}
|
loading={loadingMore}
|
||||||
>
|
>
|
||||||
{loadingMore ? 'Loading...' : 'Load More Comments'}
|
{loadingMore ? 'Loading...' : 'Load More Comments'}
|
||||||
|
|||||||
Reference in New Issue
Block a user