Skip to content

Commit 8ce527d

Browse files
committed
Fix formatting in CreateCommitDialog
1 parent a279062 commit 8ce527d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

frontend/src/components/chat/github/CreateCommitDialog.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ export function CreateCommitDialog({ onClose }: CreateCommitDialogProps) {
2020
const commitMutation = useGitCommitMutation();
2121
const generateMessage = useGenerateCommitMessageMutation();
2222

23-
const { data: diffData, isPlaceholderData } = useGitDiffQuery(sandboxId, 'all', false, worktreeCwd);
23+
const { data: diffData, isPlaceholderData } = useGitDiffQuery(
24+
sandboxId,
25+
'all',
26+
false,
27+
worktreeCwd,
28+
);
2429
const { selectedModelId } = useChatSessionState();
2530

2631
const hasDiff = !!diffData?.diff && !isPlaceholderData;
@@ -110,9 +115,7 @@ export function CreateCommitDialog({ onClose }: CreateCommitDialogProps) {
110115
: 'cursor-not-allowed opacity-50'
111116
}`}
112117
>
113-
<Sparkles
114-
className={`h-3 w-3 ${generateMessage.isPending ? 'animate-pulse' : ''}`}
115-
/>
118+
<Sparkles className={`h-3 w-3 ${generateMessage.isPending ? 'animate-pulse' : ''}`} />
116119
{generateMessage.isPending ? 'Generating...' : 'Generate with AI'}
117120
</Button>
118121
</div>

0 commit comments

Comments
 (0)