move NotificationHub from plugins to main folder
Summary: As all device plugins are now moved to the plugins folder, this was the last thing in this folder. I am moving it out and putting it next to the core UI parts of the app. Reviewed By: jknoxville Differential Revision: D10337838 fbshipit-source-id: 6fa699c28e5df8a53719179fbb760f2a140bafc4
This commit is contained in:
committed by
Facebook Github Bot
parent
01020edbf2
commit
22e3017cdc
@@ -25,6 +25,7 @@ import {connect} from 'react-redux';
|
||||
import {setPluginState} from './reducers/pluginStates.js';
|
||||
import {setActiveNotifications} from './reducers/notifications.js';
|
||||
import {devicePlugins, clientPlugins} from './plugins/index.js';
|
||||
import NotificationsHub from './NotificationsHub';
|
||||
import {activateMenuItems} from './MenuBar.js';
|
||||
|
||||
const Container = styled(FlexColumn)({
|
||||
@@ -68,7 +69,7 @@ type State = {
|
||||
|
||||
function computeState(props: Props): State {
|
||||
// plugin changed
|
||||
let activePlugin = devicePlugins.find(
|
||||
let activePlugin = [NotificationsHub, ...devicePlugins].find(
|
||||
(p: Class<FlipperDevicePlugin<>>) => p.id === props.selectedPlugin,
|
||||
);
|
||||
let target = props.selectedDevice;
|
||||
|
||||
Reference in New Issue
Block a user