mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-08-31 20:17:47 +00:00
Add hint box with dynamic join button
This commit is contained in:
committed by
Lyubo Marinov
parent
547ddee3a5
commit
e23d4317eb
@@ -28,8 +28,8 @@ class RecentList extends AbstractRecentList {
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
constructor() {
|
||||
super();
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
// Bind event handlers so they are only bound once per instance.
|
||||
this._getAvatarStyle = this._getAvatarStyle.bind(this);
|
||||
@@ -47,16 +47,22 @@ class RecentList extends AbstractRecentList {
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
if (!this.props || !this.props._recentList) {
|
||||
const { _recentList, disabled } = this.props;
|
||||
|
||||
if (!_recentList) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const listViewDataSource
|
||||
= this.dataSource.cloneWithRows(
|
||||
getRecentRooms(this.props._recentList));
|
||||
getRecentRooms(_recentList));
|
||||
|
||||
return (
|
||||
<View style = { styles.container }>
|
||||
<View
|
||||
style = { [
|
||||
styles.container,
|
||||
disabled ? styles.containerDisabled : null
|
||||
] }>
|
||||
<ListView
|
||||
dataSource = { listViewDataSource }
|
||||
enableEmptySections = { true }
|
||||
|
||||
Reference in New Issue
Block a user