Skip to content

Commit bc68e87

Browse files
olisticclaude
andcommitted
style(cli): fix Biome formatting in SelectPrompt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 88aafde commit bc68e87

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

apps/cli/src/ui/components/SelectPrompt/SelectPrompt.test.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ describe('SelectPrompt', () => {
133133
});
134134

135135
test('does not render description line when not provided', () => {
136-
const { lastFrame } = render(
137-
<SelectPrompt message="Pick:" items={items} onSelect={vi.fn()} />,
138-
);
136+
const { lastFrame } = render(<SelectPrompt message="Pick:" items={items} onSelect={vi.fn()} />);
139137
const lines = lastFrame()!.split('\n');
140138
// message + 3 items = 4 lines (no extra description lines)
141139
expect(lines).toHaveLength(4);

apps/cli/src/ui/components/SelectPrompt/SelectPrompt.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ export default function SelectPrompt<T>({
9191
<Text dimColor={!isSelected}>{item.label}</Text>
9292
</Box>
9393
{item.description ? (
94-
<Text dimColor>{' '}{item.description}</Text>
94+
<Text dimColor>
95+
{' '}
96+
{item.description}
97+
</Text>
9598
) : null}
9699
</Box>
97100
);

0 commit comments

Comments
 (0)