File tree Expand file tree Collapse file tree
react/src/components/Chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { createDataTransferFiles } from '../../helper';
22import Flex from '../Flex' ;
33import ChatSender , {
44 AttachmentChangeInfo ,
5- ChageAttachmentsProps ,
5+ ChatAttachmentsProps ,
66} from './ChatSender' ;
77import { CreateMessage , Message } from '@ai-sdk/react' ;
88import type { AttachmentsProps } from '@ant-design/x' ;
@@ -24,7 +24,7 @@ interface ChatRequest {
2424 fetchOnClient ?: boolean ;
2525}
2626
27- interface ChatInputProps extends ChatRequest , ChageAttachmentsProps {
27+ interface ChatInputProps extends ChatRequest , ChatAttachmentsProps {
2828 sync : boolean ;
2929 input : string ;
3030 setInput : ( input : string ) => void ;
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import { isEmpty } from 'lodash';
1111import { useEffect , useRef } from 'react' ;
1212import { useTranslation } from 'react-i18next' ;
1313
14- export interface ChageAttachmentsProps {
14+ export interface ChatAttachmentsProps {
1515 dropContainerRef : React . RefObject < HTMLElement | null > ;
1616}
1717
18- const ChatAttachments : React . FC < ChageAttachmentsProps & AttachmentsProps > = ( {
18+ const ChatAttachments : React . FC < ChatAttachmentsProps & AttachmentsProps > = ( {
1919 items,
2020 onChange,
2121 dropContainerRef,
@@ -53,7 +53,7 @@ export type AttachmentChangeInfo = Parameters<
5353
5454interface ChatSenderProps
5555 extends Omit < SenderProps , 'onChange' > ,
56- ChageAttachmentsProps {
56+ ChatAttachmentsProps {
5757 loading ?: boolean ;
5858 autoFocus ?: boolean ;
5959 items ?: Attachment [ ] ;
You can’t perform that action at this time.
0 commit comments