mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 23:17:48 +00:00
* Created desktop reactions menu Moved raise hand functionality to reactions menu * Added reactions to chat * Added animations * Added reactions to the web mobile version Redesigned the overflow menu. Added the reactions menu and reactions animations * Make toolbar visible on animation start * Bug fix * Cleanup * Fixed overflow menu desktop * Revert mobile menu changes * Removed unused CSS * Fixed iOS safari issue * Fixed overflow issue on mobile * Added keyboard shortcuts for reactions * Disabled double tap zoom on reaction buttons * Refactored actions * Updated option symbol for keyboard shortcuts * Actions refactor * Refactor * Fixed linting errors * Updated BottomSheet * Added reactions on native * Code cleanup * Code review refactor * Color fix * Hide reactions on one participant * Removed console log * Lang fix * Update schortcuts
56 lines
1.5 KiB
JavaScript
56 lines
1.5 KiB
JavaScript
import React from 'react';
|
|
|
|
import { ReactionEmoji } from '../../../../reactions/components';
|
|
import { getReactionsQueue } from '../../../../reactions/functions.any';
|
|
import { connect } from '../../../redux';
|
|
import AbstractDialogContainer, {
|
|
abstractMapStateToProps
|
|
} from '../AbstractDialogContainer';
|
|
|
|
/**
|
|
* Implements a DialogContainer responsible for showing all dialogs. We will
|
|
* need a separate container so we can handle multiple dialogs by showing them
|
|
* simultaneously or queueing them.
|
|
*
|
|
* @extends AbstractDialogContainer
|
|
*/
|
|
class DialogContainer extends AbstractDialogContainer {
|
|
|
|
/**
|
|
* Returns the reactions to be displayed.
|
|
*
|
|
* @returns {Array<React$Element>}
|
|
*/
|
|
_renderReactions() {
|
|
const { _reactionsQueue } = this.props;
|
|
|
|
return _reactionsQueue.map(({ reaction, uid }, index) => (<ReactionEmoji
|
|
index = { index }
|
|
key = { uid }
|
|
reaction = { reaction }
|
|
uid = { uid } />));
|
|
}
|
|
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (<React.Fragment>
|
|
{this._renderReactions()}
|
|
{this._renderDialogContent()}
|
|
</React.Fragment>);
|
|
}
|
|
}
|
|
|
|
const mapStateToProps = state => {
|
|
return {
|
|
...abstractMapStateToProps(state),
|
|
_reactionsQueue: getReactionsQueue(state)
|
|
};
|
|
};
|
|
|
|
export default connect(mapStateToProps)(DialogContainer);
|