Skip to content

Commit 1481149

Browse files
authored
fix: wrap MessageEditor with QuickPanelProvider (#10223)
* fix: wrap MessageEditor with QuickPanelProvider * style: revert formatting
1 parent 4f91a32 commit 1481149

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/renderer/src/pages/home/Chat.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,23 @@ const Chat: FC<Props> = (props) => {
155155
flex={1}
156156
justify="space-between"
157157
style={{ maxWidth: chatMaxWidth, height: mainHeight }}>
158-
<Messages
159-
key={props.activeTopic.id}
160-
assistant={assistant}
161-
topic={props.activeTopic}
162-
setActiveTopic={props.setActiveTopic}
163-
onComponentUpdate={messagesComponentUpdateHandler}
164-
onFirstUpdate={messagesComponentFirstUpdateHandler}
165-
/>
166-
<ContentSearch
167-
ref={contentSearchRef}
168-
searchTarget={mainRef as React.RefObject<HTMLElement>}
169-
filter={contentSearchFilter}
170-
includeUser={filterIncludeUser}
171-
onIncludeUserChange={userOutlinedItemClickHandler}
172-
/>
173-
{messageNavigation === 'buttons' && <ChatNavigation containerId="messages" />}
174158
<QuickPanelProvider>
159+
<Messages
160+
key={props.activeTopic.id}
161+
assistant={assistant}
162+
topic={props.activeTopic}
163+
setActiveTopic={props.setActiveTopic}
164+
onComponentUpdate={messagesComponentUpdateHandler}
165+
onFirstUpdate={messagesComponentFirstUpdateHandler}
166+
/>
167+
<ContentSearch
168+
ref={contentSearchRef}
169+
searchTarget={mainRef as React.RefObject<HTMLElement>}
170+
filter={contentSearchFilter}
171+
includeUser={filterIncludeUser}
172+
onIncludeUserChange={userOutlinedItemClickHandler}
173+
/>
174+
{messageNavigation === 'buttons' && <ChatNavigation containerId="messages" />}
175175
<Inputbar assistant={assistant} setActiveTopic={props.setActiveTopic} topic={props.activeTopic} />
176176
{isMultiSelectMode && <MultiSelectActionPopup topic={props.activeTopic} />}
177177
</QuickPanelProvider>

0 commit comments

Comments
 (0)