-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
### What problem does this PR solve? feat: Add message_history_window_size to CategorizeForm #1739 ### Type of change - [ ] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe):
- Loading branch information
Showing
4 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Form, InputNumber } from 'antd'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
const MessageHistoryWindowSizeItem = ({ | ||
initialValue, | ||
}: { | ||
initialValue: number; | ||
}) => { | ||
const { t } = useTranslation('flow'); | ||
|
||
return ( | ||
<Form.Item | ||
name={'message_history_window_size'} | ||
label={t('messageHistoryWindowSize')} | ||
initialValue={initialValue} | ||
tooltip={t('messageHistoryWindowSizeTip')} | ||
> | ||
<InputNumber style={{ width: '100%' }} /> | ||
</Form.Item> | ||
); | ||
}; | ||
|
||
export default MessageHistoryWindowSizeItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters