add prop type
This commit is contained in:
parent
2015c50105
commit
ecdc5304df
@ -24,7 +24,7 @@ const PresentationToolbarContainer = (props) => {
|
|||||||
|
|
||||||
const endCurrentPoll = () => {
|
const endCurrentPoll = () => {
|
||||||
if (CurrentPoll.findOne({ meetingId: Auth.meetingID })) makeCall('stopPoll');
|
if (CurrentPoll.findOne({ meetingId: Auth.meetingID })) makeCall('stopPoll');
|
||||||
}
|
};
|
||||||
|
|
||||||
if (userIsPresenter && !layoutSwapped) {
|
if (userIsPresenter && !layoutSwapped) {
|
||||||
// Only show controls if user is presenter and layout isn't swapped
|
// Only show controls if user is presenter and layout isn't swapped
|
||||||
@ -84,6 +84,7 @@ PresentationToolbarContainer.propTypes = {
|
|||||||
previousSlide: PropTypes.func.isRequired,
|
previousSlide: PropTypes.func.isRequired,
|
||||||
skipToSlide: PropTypes.func.isRequired,
|
skipToSlide: PropTypes.func.isRequired,
|
||||||
layoutSwapped: PropTypes.bool,
|
layoutSwapped: PropTypes.bool,
|
||||||
|
endCurrentPoll: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
PresentationToolbarContainer.defaultProps = {
|
PresentationToolbarContainer.defaultProps = {
|
||||||
|
Loading…
Reference in New Issue
Block a user