-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Harry
committed
May 22, 2024
1 parent
6017a25
commit f6216f3
Showing
6 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
from .api import app, healthy_response, unhealthy_neo4j_response, chat_fail_response | ||
from .app import app, healthy_response, unhealthy_neo4j_response, chat_fail_response | ||
|
||
__all__ = ["app", "healthy_response", "unhealthy_neo4j_response", "chat_fail_response"] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
import React, { useContext } from 'react'; | ||
import React from 'react'; | ||
import styles from './app.module.css'; | ||
import { Chat } from './components/chat'; | ||
import { Input } from './components/input'; | ||
import { useMessages } from './useMessages'; | ||
import { ConnectionStatus } from './components/connection-status'; | ||
import { WebsocketContext } from './session/websocket-context'; | ||
|
||
export const App = () => { | ||
const { sendMessage, messages, waiting } = useMessages(); | ||
|
||
const { isConnected } = useContext(WebsocketContext); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<Chat messages={messages} waiting={waiting} /> | ||
<Input sendMessage={sendMessage} /> | ||
<ConnectionStatus isConnected={isConnected} /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters