From 742fcc9d3ce14347d03ddf43498e3daf1ed446ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leandro=20Ant=C3=B4nio=20Farias=20Machado?= Date: Sun, 18 Jun 2023 22:26:03 -0300 Subject: [PATCH] feat(socketio): get users online and offline (users status) (2) --- frontend/src/pages/_app.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/frontend/src/pages/_app.js b/frontend/src/pages/_app.js index 7c9c9d9..b22cb8f 100644 --- a/frontend/src/pages/_app.js +++ b/frontend/src/pages/_app.js @@ -9,6 +9,7 @@ import { useNProgress } from 'src/hooks/use-nprogress'; import { createTheme } from 'src/theme'; import { createEmotionCache } from 'src/utils/create-emotion-cache'; import 'simplebar-react/dist/simplebar.min.css'; +import { WsProvider } from 'src/contexts/socketio-context'; const clientSideEmotionCache = createEmotionCache(); @@ -36,16 +37,18 @@ const App = (props) => { - - - - { - (auth) => auth.isLoading - ? - : getLayout() - } - - + + + + + { + (auth) => auth.isLoading + ? + : getLayout() + } + + +