add prop type

This commit is contained in:
Bohdan Zhemelinskyi 2023-03-15 18:24:34 +00:00
parent 2015c50105
commit ecdc5304df

View File

@ -24,7 +24,7 @@ const PresentationToolbarContainer = (props) => {
const endCurrentPoll = () => {
if (CurrentPoll.findOne({ meetingId: Auth.meetingID })) makeCall('stopPoll');
}
};
if (userIsPresenter && !layoutSwapped) {
// Only show controls if user is presenter and layout isn't swapped
@ -84,6 +84,7 @@ PresentationToolbarContainer.propTypes = {
previousSlide: PropTypes.func.isRequired,
skipToSlide: PropTypes.func.isRequired,
layoutSwapped: PropTypes.bool,
endCurrentPoll: PropTypes.func.isRequired,
};
PresentationToolbarContainer.defaultProps = {