bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/timer/indicator/container.jsx
Arthurk12 3895d86823 fix(timer): indicator not showing on mobile
Due to the new layout manager, open panels' checking needed tweaking.
2023-05-18 15:29:36 -03:00

32 lines
1023 B
JavaScript

import React from 'react';
import { withTracker } from 'meteor/react-meteor-data';
import Indicator from './component';
import TimerService from '/imports/ui/components/timer/service';
import { layoutSelectInput } from '/imports/ui/components/layout/context';
const IndicatorContainer = (props) => {
const sidebarNavigation = layoutSelectInput((i) => i.sidebarNavigation);
const sidebarContent = layoutSelectInput((i) => i.sidebarContent);
const sidebarNavigationIsOpen = sidebarNavigation.isOpen;
const sidebarContentIsOpen = sidebarContent.isOpen;
return (
<Indicator
{...{
sidebarNavigationIsOpen,
sidebarContentIsOpen,
...props,
}}
/>
);
};
export default withTracker(() => ({
timer: TimerService.getTimer(),
timeOffset: TimerService.getTimeOffset(),
isModerator: TimerService.isModerator(),
isTimerActive: TimerService.isActive(),
isMusicActive: TimerService.isMusicActive(),
currentTrack: TimerService.getCurrentTrack(),
}))(IndicatorContainer);