plugin manager button
Reviewed By: elboman Differential Revision: D47400185 fbshipit-source-id: fc2875808d8b2c2443766d7619091c65395b0c07
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5b27a6a4c9
commit
a7d3c265c6
@@ -7,7 +7,7 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {Layout, styled, theme, useValue} from 'flipper-plugin';
|
||||
import {Dialog, Layout, styled, theme, useValue} from 'flipper-plugin';
|
||||
import React, {cloneElement, useCallback, useState} from 'react';
|
||||
import {useDispatch, useStore} from '../utils/useStore';
|
||||
import config from '../fb-stubs/config';
|
||||
@@ -28,6 +28,7 @@ import {
|
||||
WarningOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import {toggleLeftSidebarVisible} from '../reducers/application';
|
||||
import PluginManager from '../chrome/plugin-manager/PluginManager';
|
||||
|
||||
export function Navbar() {
|
||||
return (
|
||||
@@ -48,7 +49,13 @@ export function Navbar() {
|
||||
<NavbarButton label="Record" icon={VideoCameraOutlined} />
|
||||
</Layout.Horizontal>
|
||||
<Layout.Horizontal style={{gap: 4, alignItems: 'center'}}>
|
||||
<NavbarButton label="Add Plugins" icon={AppstoreAddOutlined} />
|
||||
<NavbarButton
|
||||
label="Add Plugins"
|
||||
icon={AppstoreAddOutlined}
|
||||
onClick={() => {
|
||||
Dialog.showModal((onHide) => <PluginManager onHide={onHide} />);
|
||||
}}
|
||||
/>
|
||||
<NavbarButton label="Logs" icon={FileExclamationOutlined} />
|
||||
<NavbarButton label="Alerts" icon={BellOutlined} />
|
||||
<NavbarButton label="Doctor" icon={MedicineBoxOutlined} />
|
||||
|
||||
Reference in New Issue
Block a user