mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-22 06:47:48 +00:00
ref(analytics): Use analytics from features/analytics
This commit is contained in:
@@ -4,13 +4,13 @@ import PropTypes from 'prop-types';
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { sendEvent } from '../../analytics';
|
||||
import { DEFAULT_AVATAR_RELATIVE_PATH } from '../../base/participants';
|
||||
import UIEvents from '../../../../service/UI/UIEvents';
|
||||
|
||||
import ToolbarButton from './ToolbarButton';
|
||||
|
||||
declare var APP: Object;
|
||||
declare var JitsiMeetJS: Object;
|
||||
|
||||
/**
|
||||
* The default configuration for the button.
|
||||
@@ -102,7 +102,7 @@ class ProfileButton extends Component {
|
||||
*/
|
||||
_onClick() {
|
||||
if (!this.props._unclickable) {
|
||||
JitsiMeetJS.analytics.sendEvent('toolbar.profile.toggled');
|
||||
sendEvent('toolbar.profile.toggled');
|
||||
APP.UI.emitEvent(UIEvents.TOGGLE_PROFILE);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user