start emulator button
Reviewed By: elboman Differential Revision: D47400275 fbshipit-source-id: 38a0090283e8fc7207b643411246b15a3659616d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a7d3c265c6
commit
5647b9a4b8
@@ -24,11 +24,13 @@ import {
|
||||
LoginOutlined,
|
||||
MedicineBoxOutlined,
|
||||
QuestionCircleOutlined,
|
||||
RocketOutlined,
|
||||
VideoCameraOutlined,
|
||||
WarningOutlined,
|
||||
} from '@ant-design/icons';
|
||||
import {toggleLeftSidebarVisible} from '../reducers/application';
|
||||
import PluginManager from '../chrome/plugin-manager/PluginManager';
|
||||
import {showEmulatorLauncher} from './appinspect/LaunchEmulator';
|
||||
|
||||
export function Navbar() {
|
||||
return (
|
||||
@@ -47,6 +49,7 @@ export function Navbar() {
|
||||
<button>device picker</button>
|
||||
<NavbarButton label="Screenshot" icon={CameraOutlined} />
|
||||
<NavbarButton label="Record" icon={VideoCameraOutlined} />
|
||||
<LaunchEmulatorButton />
|
||||
</Layout.Horizontal>
|
||||
<Layout.Horizontal style={{gap: 4, alignItems: 'center'}}>
|
||||
<NavbarButton
|
||||
@@ -85,6 +88,20 @@ function LeftSidebarToggleButton() {
|
||||
);
|
||||
}
|
||||
|
||||
function LaunchEmulatorButton() {
|
||||
const store = useStore();
|
||||
|
||||
return (
|
||||
<NavbarButton
|
||||
icon={RocketOutlined}
|
||||
label="Start [E/Si]mulator"
|
||||
onClick={() => {
|
||||
showEmulatorLauncher(store);
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
function NavbarButton({
|
||||
icon: Icon,
|
||||
label,
|
||||
|
||||
Reference in New Issue
Block a user