ui: disable input on limit
This commit is contained in:
parent
eab0f60734
commit
07cc0f0939
2 changed files with 7 additions and 1 deletions
|
|
@ -61,8 +61,13 @@ function ChatInput({
|
|||
}
|
||||
}}
|
||||
ref={inputRef}
|
||||
placeholder={'Ask anything about your product and users...'}
|
||||
placeholder={
|
||||
limited
|
||||
? `You've reached the daily limit for queries, come again tomorrow!`
|
||||
: 'Ask anything about your product and users...'
|
||||
}
|
||||
size={'large'}
|
||||
disabled={limited}
|
||||
value={inputValue}
|
||||
onChange={(e) => setInputValue(e.target.value)}
|
||||
suffix={
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ module.exports = {
|
|||
'indigo-lightest': 'oklch(96.2% 0.018 272.314)',
|
||||
'indigo': 'oklch(58.5% 0.233 277.117)',
|
||||
|
||||
/** DEPRECATED */
|
||||
figmaColors: {
|
||||
'accent-secondary': 'rgba(62, 170, 175, 1)',
|
||||
main: 'rgba(57, 78, 255, 1)',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue