Skip to content

Commit 073ec3e

Browse files
committed
fix react demo
1 parent 63e8c34 commit 073ec3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/demo-react/src/App.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const ChatBoxPage = () => {
4545
<div className="component-row">
4646
<OramaChatBox
4747
sourcesMap={{description: "content"}}
48-
clientInstance={collectionManager}
48+
oramaCoreClientInstance={collectionManager}
4949
style={{ height: '600px' }}
5050
onAnswerSourceClick={(e: Event) => console.log(e)}
5151
onAnswerGenerated={(e: Event) => console.log(e)}
@@ -78,10 +78,10 @@ const SearchBoxPage = () => {
7878
console.log('Status changed to: ', e.detail.open)
7979
}}
8080
colorScheme="system"
81-
clientInstance={collectionManager}
81+
oramaCoreClientInstance={collectionManager}
8282
suggestions={['Suggestion 1', 'Suggestion 2', 'Suggestion 3']}
8383
onSearchCompleted={(e: Event) => console.log(e)}
84-
onSearchResultClick={(e: React.MouseEvent) => {
84+
onSearchResultClick={(e) => {
8585
e.preventDefault()
8686
alert('Element clicked')
8787
}}
@@ -92,7 +92,7 @@ const SearchBoxPage = () => {
9292
}}
9393
chatMarkdownLinkTitle={({ text }: { text: string; href: string }) => text?.toUpperCase()}
9494
chatMarkdownLinkHref={({ href }: { text: string; href: string }) => href}
95-
onChatMarkdownLinkClicked={(e: React.MouseEvent) => {
95+
onChatMarkdownLinkClicked={(e) => {
9696
alert('Callback on client side')
9797
e.preventDefault()
9898
}}

0 commit comments

Comments
 (0)