fix: adjust placeholder
This commit is contained in:
parent
837ac2d5c3
commit
94e6f12924
1 changed files with 4 additions and 3 deletions
|
|
@ -68,14 +68,15 @@ const UserInput: React.FC<UserInputProps> = ({
|
|||
});
|
||||
|
||||
const renderInputText = () => {
|
||||
const placeholderText = "Ask anything, @ for context, / for slash commands";
|
||||
if (inputText.length === 0) {
|
||||
return (
|
||||
<>
|
||||
{inputMode && !isWaitingForResponse && (
|
||||
<Text color="gray">▋Type your message...</Text>
|
||||
<Text color="gray">▋{placeholderText}</Text>
|
||||
)}
|
||||
{(!inputMode || isWaitingForResponse) && (
|
||||
<Text color="gray">Type your message...</Text>
|
||||
<Text color="gray">{placeholderText}</Text>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
@ -149,4 +150,4 @@ const UserInput: React.FC<UserInputProps> = ({
|
|||
);
|
||||
};
|
||||
|
||||
export default UserInput;
|
||||
export default UserInput;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue