Skip to content

Commit

Permalink
馃悰 fix: inputAreaProps should be changed (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours committed Apr 28, 2024
1 parent 724bb40 commit a7cc186
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/ProChat/container/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const ProChatProvider = memo<ProChatProviderProps<any>>(
loading,
helloMessage,
userMeta,
inputAreaProps,
assistantMeta,
request,
locale,
Expand All @@ -36,6 +37,7 @@ export const ProChatProvider = memo<ProChatProviderProps<any>>(
chats={chats}
userMeta={userMeta}
request={request}
inputAreaProps={inputAreaProps}
assistantMeta={assistantMeta}
onChatsChange={onChatsChange}
locale={locale}
Expand Down
11 changes: 10 additions & 1 deletion src/ProChat/container/StoreUpdater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ export interface StoreUpdaterProps
extends Partial<
Pick<
ChatState,
'chats' | 'config' | 'init' | 'onChatsChange' | 'helloMessage' | 'request' | 'locale'
| 'chats'
| 'config'
| 'init'
| 'onChatsChange'
| 'helloMessage'
| 'request'
| 'locale'
| 'inputAreaProps'
>
>,
Pick<ChatProps, 'userMeta' | 'assistantMeta'> {
Expand All @@ -26,6 +33,7 @@ const StoreUpdater = memo<StoreUpdaterProps>(
userMeta,
assistantMeta,
helloMessage,
inputAreaProps,
chats,
config,
locale,
Expand All @@ -38,6 +46,7 @@ const StoreUpdater = memo<StoreUpdaterProps>(
useStoreUpdater('userMeta', userMeta);
useStoreUpdater('assistantMeta', assistantMeta);

useStoreUpdater('inputAreaProps', inputAreaProps);
useStoreUpdater('helloMessage', helloMessage);
useStoreUpdater('config', config);

Expand Down

0 comments on commit a7cc186

Please sign in to comment.