From c7531c82b8fb486c9fc9f0a87bd8da8f0b21935c Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Thu, 3 Oct 2019 14:02:21 +0300 Subject: [PATCH] ControlBar props updated --- src/routes/Player/ControlBar/ControlBar.js | 93 +++++++++++----------- 1 file changed, 45 insertions(+), 48 deletions(-) diff --git a/src/routes/Player/ControlBar/ControlBar.js b/src/routes/Player/ControlBar/ControlBar.js index 576250a6d..dfe6ad82b 100644 --- a/src/routes/Player/ControlBar/ControlBar.js +++ b/src/routes/Player/ControlBar/ControlBar.js @@ -9,55 +9,56 @@ const SubtitlesButton = require('./SubtitlesButton'); const ShareButton = require('./ShareButton'); const styles = require('./styles'); -const ControlBar = (props) => ( -
- -
- { + return ( +
+ - - -
- - +
+ + + +
+ + +
-
-); + ); +}; ControlBar.propTypes = { className: PropTypes.string, - modalContainerClassName: PropTypes.string, paused: PropTypes.bool, time: PropTypes.number, duration: PropTypes.number, @@ -67,7 +68,7 @@ ControlBar.propTypes = { id: PropTypes.string.isRequired, label: PropTypes.string.isRequired, origin: PropTypes.string.isRequired - })).isRequired, + })), selectedSubtitlesTrackId: PropTypes.string, subtitlesSize: PropTypes.number, subtitlesDelay: PropTypes.number, @@ -77,8 +78,4 @@ ControlBar.propTypes = { dispatch: PropTypes.func }; -ControlBar.defaultProps = { - subtitlesTracks: Object.freeze([]) -}; - module.exports = ControlBar;