From 3aff812ee232b51cc7f8789a6ff3b928da09b23e Mon Sep 17 00:00:00 2001 From: Lyubomir Marinov Date: Fri, 27 Jan 2017 21:36:20 -0600 Subject: [PATCH] Consistent naming of Component props mapped from the Redux state Until we make a decision on access modifier hints and adopt a respective coding style, consistency is king. --- .../film-strip/components/FilmStrip.js | 20 ++++++++++--- .../film-strip/components/Thumbnail.js | 30 +++++++++---------- .../toolbar/components/AbstractToolbar.js | 26 ++++++++++------ .../toolbar/components/Toolbar.native.js | 2 +- .../welcome/components/AbstractWelcomePage.js | 18 +++++------ 5 files changed, 57 insertions(+), 39 deletions(-) diff --git a/react/features/film-strip/components/FilmStrip.js b/react/features/film-strip/components/FilmStrip.js index 972b7cbfe..052c39279 100644 --- a/react/features/film-strip/components/FilmStrip.js +++ b/react/features/film-strip/components/FilmStrip.js @@ -19,7 +19,13 @@ class FilmStrip extends Component { * @static */ static propTypes = { - participants: React.PropTypes.array, + /** + * The participants in the conference. + * + * @private + * @type {Participant[]} + */ + _participants: React.PropTypes.array, visible: React.PropTypes.bool.isRequired } @@ -43,7 +49,7 @@ class FilmStrip extends Component { showsHorizontalScrollIndicator = { false } showsVerticalScrollIndicator = { false }> { - this._sort(this.props.participants) + this._sort(this.props._participants) .map(p => + ); } @@ -202,8 +202,8 @@ export class AbstractWelcomePage extends Component { * * @param {Object} state - Redux state. * @returns {{ - * localVideoTrack: (Track|undefined), - * room: string + * _localVideoTrack: (Track|undefined), + * _room: string * }} */ export function mapStateToProps(state) { @@ -211,7 +211,7 @@ export function mapStateToProps(state) { const tracks = state['features/base/tracks']; return { - localVideoTrack: getLocalVideoTrack(tracks), - room: conference.room + _localVideoTrack: getLocalVideoTrack(tracks), + _room: conference.room }; }