Skip to content

Commit 77cbfe4

Browse files
committed
refactor(cli): consolidate subText assignment in ApprovalModeIndicator
1 parent a8f195f commit 77cbfe4

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/cli/src/ui/components/ApprovalModeIndicator.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,22 @@ export const ApprovalModeIndicator: React.FC<ApprovalModeIndicatorProps> = ({
2424
case ApprovalMode.AUTO_EDIT:
2525
textColor = theme.status.warning;
2626
textContent = 'Auto';
27-
subText = ' shift+tab';
2827
break;
2928
case ApprovalMode.PLAN:
3029
textColor = theme.status.success;
3130
textContent = 'Plan';
32-
subText = ' shift+tab';
3331
break;
3432
case ApprovalMode.YOLO:
3533
textColor = theme.status.error;
3634
textContent = 'YOLO';
37-
subText = ' shift+tab';
3835
break;
3936
case ApprovalMode.DEFAULT:
4037
default:
4138
textColor = theme.text.accent;
4239
textContent = 'Build';
43-
subText = ' shift+tab';
4440
break;
4541
}
42+
subText = ' shift+tab';
4643

4744
return (
4845
<Box>

0 commit comments

Comments
 (0)