From 8458376a6451b0ed2998b2e33855fe17ed28d4ce Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 19 Nov 2023 15:11:38 +0100 Subject: [PATCH] Integrated the MusicProvider into the Root.jsx layout --- client/src/common/layouts/Root/Root.jsx | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/client/src/common/layouts/Root/Root.jsx b/client/src/common/layouts/Root/Root.jsx index 56ef463..8ea8dc1 100644 --- a/client/src/common/layouts/Root/Root.jsx +++ b/client/src/common/layouts/Root/Root.jsx @@ -6,6 +6,7 @@ import Background from "@/common/components/Background"; import {socket} from "@/common/utils/socket.js"; import {useEffect} from "react"; import {GroupProvider} from "@/common/contexts/GroupContext.jsx"; +import {MusicProvider} from "@/common/contexts/MusicContext.jsx"; export const Root = () => { const outlet = useOutlet(); @@ -19,19 +20,21 @@ export const Root = () => { }, []); return ( -
-
+ +
+
-
- - {outlet} - -
+
+ + {outlet} + +
-
+
+ ); } \ No newline at end of file