Skip to content

Commit f194957

Browse files
committed
Update warning messages for selection and missing editor states in PromptField
1 parent b408741 commit f194957

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/ui/src/components/editor/panel/PromptField/PromptField.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,12 @@ export const PromptField: React.FC<PromptFieldProps> = (props) => {
326326
</div>
327327
) : !!props.current_selection && props.prompt_type == 'code-at-cursor' ? (
328328
<div className={styles.warning}>
329-
<div className={styles.warning__inner}>Remove text selection</div>
329+
<div className={styles.warning__inner}>Selection found</div>
330330
</div>
331331
) : props.prompt_type == 'code-at-cursor' &&
332332
!props.currently_open_file_path ? (
333333
<div className={styles.warning}>
334-
<div className={styles.warning__inner}>Place cursor in a file</div>
334+
<div className={styles.warning__inner}>Missing active editor</div>
335335
</div>
336336
) : null}
337337

0 commit comments

Comments
 (0)