Skip to content

Commit 9fa4e87

Browse files
sample React Chat for React UIKit v1.0.3
1 parent a11a172 commit 9fa4e87

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

samples/react-chat/package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/react-chat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-chat",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.11.0",
@@ -11,7 +11,7 @@
1111
"@types/node": "^16.18.28",
1212
"@types/react": "^18.2.6",
1313
"@types/react-dom": "^18.2.4",
14-
"quickblox-react-ui-kit": "^0.1.3",
14+
"quickblox-react-ui-kit": "^0.1.4",
1515
"node-sass": "^8.0.0",
1616
"quickblox": "^2.15.5",
1717
"react": "^17.0.0 || ^18.0.0",

samples/react-chat/src/App.tsx

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,21 @@ function App() {
204204
logoutUIKitHandler();
205205
console.log('OnSessionExpiredListener ... end');
206206
})
207+
////
208+
209+
///
210+
// QB.chat.onSessionExpiredListener = (error: any) => {
211+
// if (error) {
212+
// console.log('onSessionExprideListener - error: ', error);
213+
// } else {
214+
// console.log('onSessionExprideListener - Ok');
215+
// console.log('call QB.chat.onSessionExpiredListener ... start');
216+
// logoutUIKitHandler();
217+
// console.log(' QB.chat.onSessionExpiredListener ... end');
218+
// }
219+
// };
220+
221+
///
207222

208223
setAuthorized(true);
209224
document.documentElement.setAttribute('data-theme', theme);
@@ -312,7 +327,7 @@ function App() {
312327
/>
313328
</div>
314329
{/*<QuickBloxUIKitDesktopLayout theme={new CustomTheme()} />*/}
315-
<QuickBloxUIKitDesktopLayout />
330+
<QuickBloxUIKitDesktopLayout />
316331
</div>
317332
</div>
318333
:

0 commit comments

Comments
 (0)