diff --git a/src/components/context/HotelContext.jsx b/src/components/context/HotelContext.jsx
index d942737..b6c63b9 100644
--- a/src/components/context/HotelContext.jsx
+++ b/src/components/context/HotelContext.jsx
@@ -399,8 +399,8 @@ async function addHotelUser(user_id,hotel_ids) {
//if (!accessTokenSingle || !clientId) return;
const ws = new WebSocket(
- //`ws://localhost:7080/auth/ws/${accessTokenSingle}`
- `wss://79.137.75.155/hotel-demo/api/auth/ws/${accessTokenSingle}`
+ `ws://localhost:7080/auth/ws/${accessTokenSingle}`
+ //`wss://79.137.75.155/hotel-demo/api/auth/ws/${accessTokenSingle}`
);
wsRef.current = ws;
diff --git a/src/components/login.jsx b/src/components/login.jsx
index 0e58e7a..4c4d53f 100644
--- a/src/components/login.jsx
+++ b/src/components/login.jsx
@@ -118,32 +118,36 @@ export default function Login({ onLogin }) {
return (
<>
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
Connectez-vous en utilisant
+ "test1"/"test2" comme username et password
+
-
-
+
>
diff --git a/src/components/widget/chatWidget.css b/src/components/widget/chatWidget.css
index 95c3920..4211cae 100644
--- a/src/components/widget/chatWidget.css
+++ b/src/components/widget/chatWidget.css
@@ -1,3 +1,4 @@
+
.chatWidget {
margin :5px;
display: flex;
@@ -12,7 +13,7 @@
display: flex;
flex-direction: row;
gap: 0.5rem;
- padding: 0.75rem;
+ padding: 8px;
overflow-y: auto;
height: 20%;
}
@@ -61,6 +62,7 @@ width: 70%;
/* Messages */
.msg {
+ margin: 5px;
max-width: 70%;
padding: 0.5rem 0.75rem;
border-radius: 10px;
@@ -79,11 +81,18 @@ width: 70%;
}
.createConvBox {
+ margin: 5px;
display: flex;
justify-content: space-around;
}
.createConvBox > * {
+margin: 5px;
+}
+
+.convUtils button {
+ margin: 3px;
+
}
\ No newline at end of file
diff --git a/src/components/widget/chatWidget.jsx b/src/components/widget/chatWidget.jsx
index 60a654c..7577da1 100644
--- a/src/components/widget/chatWidget.jsx
+++ b/src/components/widget/chatWidget.jsx
@@ -28,7 +28,15 @@ export default function ChatWidget({convlist}) {
console.log("client id in chat widget");
-return (
+ function hideCreateConv(){
+ setShowCreateConv(false);
+ };
+
+ function hideAddUser(){
+ showAddUsers(false)
+ };
+
+ return (
{convlist.map(conv => (
@@ -45,7 +53,7 @@ return (
disabled={!activeConvId}
onClick={() => setShowAddUsers(v => !v)}
>
- Add users
+ Update users