Skip to content

Commit 5edaf23

Browse files
committed
fix typo
1 parent 8e42e23 commit 5edaf23

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

react/src/components/Chat/ChatInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { createDataTransferFiles } from '../../helper';
22
import Flex from '../Flex';
33
import ChatSender, {
44
AttachmentChangeInfo,
5-
ChageAttachmentsProps,
5+
ChatAttachmentsProps,
66
} from './ChatSender';
77
import { CreateMessage, Message } from '@ai-sdk/react';
88
import 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;

react/src/components/Chat/ChatSender.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ import { isEmpty } from 'lodash';
1111
import { useEffect, useRef } from 'react';
1212
import { 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

5454
interface ChatSenderProps
5555
extends Omit<SenderProps, 'onChange'>,
56-
ChageAttachmentsProps {
56+
ChatAttachmentsProps {
5757
loading?: boolean;
5858
autoFocus?: boolean;
5959
items?: Attachment[];

0 commit comments

Comments
 (0)