From b5cef05941683539d0da4a22318e52cd17961d5a Mon Sep 17 00:00:00 2001 From: Hristo Terezov Date: Fri, 19 Jul 2019 14:26:32 +0100 Subject: [PATCH] fix(AOT): imports. --- react/features/always-on-top/AudioMuteButton.js | 6 ++++-- react/features/always-on-top/HangupButton.js | 6 ++++-- react/features/always-on-top/VideoMuteButton.js | 6 ++++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/react/features/always-on-top/AudioMuteButton.js b/react/features/always-on-top/AudioMuteButton.js index db03974b4..85551e046 100644 --- a/react/features/always-on-top/AudioMuteButton.js +++ b/react/features/always-on-top/AudioMuteButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractAudioMuteButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractAudioMuteButton from '../base/toolbox/components/AbstractAudioMuteButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; const logger = require('jitsi-meet-logger').getLogger(__filename); diff --git a/react/features/always-on-top/HangupButton.js b/react/features/always-on-top/HangupButton.js index e9490fc93..225428053 100644 --- a/react/features/always-on-top/HangupButton.js +++ b/react/features/always-on-top/HangupButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractHangupButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractHangupButton from '../base/toolbox/components/AbstractHangupButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; diff --git a/react/features/always-on-top/VideoMuteButton.js b/react/features/always-on-top/VideoMuteButton.js index c0ffb4618..874143bbe 100644 --- a/react/features/always-on-top/VideoMuteButton.js +++ b/react/features/always-on-top/VideoMuteButton.js @@ -1,7 +1,9 @@ // @flow -import { AbstractVideoMuteButton } from '../base/toolbox'; -import type { AbstractButtonProps as Props } from '../base/toolbox'; +// We need to reference these files directly to avoid loading things that are not available +// in this environment (e.g. JitsiMeetJS or interfaceConfig) +import AbstractVideoMuteButton from '../base/toolbox/components/AbstractVideoMuteButton'; +import type { Props } from '../base/toolbox/components/AbstractButton'; const { api } = window.alwaysOnTop; const logger = require('jitsi-meet-logger').getLogger(__filename);