- refactored state for sessionlist, and session active and pause states
This commit is contained in:
@@ -8,7 +8,11 @@ import { useIntegrationsContext } from "../../context/IntegrationsContext";
|
||||
|
||||
export default function Header() {
|
||||
const [isFullscreen, setIsFullscreen] = useState(false);
|
||||
const { sessionStarted, sessionPaused } = useIntegrationsContext();
|
||||
const { state } = useIntegrationsContext();
|
||||
|
||||
const sessionStarted = state.sessionStarted;
|
||||
|
||||
const sessionPaused = state.sessionPaused;
|
||||
|
||||
const toggleFullscreen = () => {
|
||||
if (!document.fullscreenElement) {
|
||||
|
||||
Reference in New Issue
Block a user