mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-12 01:42:29 +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
80 lines
1.9 KiB
JavaScript
80 lines
1.9 KiB
JavaScript
/* @flow */
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
import { type ReactionEmojiProps } from '../../../reactions/constants';
|
|
|
|
/**
|
|
* The type of the React {@code Component} props of {@link DialogContainer}.
|
|
*/
|
|
type Props = {
|
|
|
|
/**
|
|
* The component to render.
|
|
*/
|
|
_component: Function,
|
|
|
|
/**
|
|
* The props to pass to the component that will be rendered.
|
|
*/
|
|
_componentProps: Object,
|
|
|
|
/**
|
|
* True if the dialog is a raw dialog (doesn't inherit behavior from other common frameworks, such as atlaskit).
|
|
*/
|
|
_rawDialog: boolean,
|
|
|
|
/**
|
|
* True if the UI is in a compact state where we don't show dialogs.
|
|
*/
|
|
_reducedUI: boolean,
|
|
|
|
/**
|
|
* Array of reactions to be displayed.
|
|
*/
|
|
_reactionsQueue: Array<ReactionEmojiProps>
|
|
};
|
|
|
|
/**
|
|
* Implements a DialogContainer responsible for showing all dialogs.
|
|
*/
|
|
export default class AbstractDialogContainer extends Component<Props> {
|
|
/**
|
|
* Returns the dialog to be displayed.
|
|
*
|
|
* @private
|
|
* @returns {ReactElement|null}
|
|
*/
|
|
_renderDialogContent() {
|
|
const {
|
|
_component: component,
|
|
_reducedUI: reducedUI
|
|
} = this.props;
|
|
|
|
return (
|
|
component && !reducedUI
|
|
? React.createElement(component, this.props._componentProps)
|
|
: null);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Maps (parts of) the redux state to the associated
|
|
* {@code AbstractDialogContainer}'s props.
|
|
*
|
|
* @param {Object} state - The redux state.
|
|
* @private
|
|
* @returns {Props}
|
|
*/
|
|
export function abstractMapStateToProps(state: Object): $Shape<Props> {
|
|
const stateFeaturesBaseDialog = state['features/base/dialog'];
|
|
const { reducedUI } = state['features/base/responsive-ui'];
|
|
|
|
return {
|
|
_component: stateFeaturesBaseDialog.component,
|
|
_componentProps: stateFeaturesBaseDialog.componentProps,
|
|
_rawDialog: stateFeaturesBaseDialog.rawDialog,
|
|
_reducedUI: reducedUI
|
|
};
|
|
}
|