diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index a57cd1b0..5aa5df23 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -85,65 +85,66 @@ const App = () => { withGlobalStyles withNormalizeCSS > - - - + + + + - - - - - {isAuthenticated ? ( - <> - } /> - } /> - } /> - } /> - } /> - } /> - - ) : ( - } /> - )} - - } - /> - + + + + + {isAuthenticated ? ( + <> + } /> + } /> + } /> + } /> + } /> + } /> + + ) : ( + } /> + )} + + } + /> + + - - - - - - - + + + + + + diff --git a/frontend/src/WebSocket.jsx b/frontend/src/WebSocket.jsx index 72533910..1d33565f 100644 --- a/frontend/src/WebSocket.jsx +++ b/frontend/src/WebSocket.jsx @@ -14,19 +14,17 @@ import useEPGsStore from './store/epgs'; import { Box, Button, Stack } from '@mantine/core'; import API from './api'; -export const WebsocketContext = createContext(false, null, () => {}); +export const WebsocketContext = createContext([false, () => {}, null]); export const WebsocketProvider = ({ children }) => { const [isReady, setIsReady] = useState(false); const [val, setVal] = useState(null); - const { fetchStreams } = useStreamsStore(); const { fetchChannels, setChannelStats, fetchChannelGroups } = useChannelsStore(); const { fetchPlaylists, setRefreshProgress, setProfilePreview } = usePlaylistsStore(); const { fetchEPGData, fetchEPGs } = useEPGsStore(); - const { playlists } = usePlaylistsStore(); const ws = useRef(null);