From 7ed9e8e6701d8231bd83b9fb29f5a36b41fd1e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Fri, 23 Aug 2019 09:30:49 -0700 Subject: [PATCH] migrate workflow to TS Summary: Updates scarf workflow to generate TypeScript plugins Reviewed By: passy Differential Revision: D16940711 fbshipit-source-id: 5005013512bad969833669c6b0b911d55ea5cd79 --- src/MenuBar.tsx | 3 +-- src/index.tsx | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MenuBar.tsx b/src/MenuBar.tsx index bea59a330..15ea91cfa 100644 --- a/src/MenuBar.tsx +++ b/src/MenuBar.tsx @@ -16,7 +16,6 @@ import path from 'path'; export type DefaultKeyboardAction = 'clear' | 'goToBottom' | 'createPaste'; export type TopLevelMenu = 'Edit' | 'View' | 'Window' | 'Help'; -const {dialog} = electron.remote; export type KeyboardAction = { action: string; @@ -177,7 +176,7 @@ function getTemplate( label: 'File...', accelerator: 'CommandOrControl+E', click: function() { - dialog.showSaveDialog( + electron.remote.dialog.showSaveDialog( null, { title: 'FlipperExport', diff --git a/src/index.tsx b/src/index.tsx index 9a4d48848..814d7a9b5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -174,3 +174,4 @@ export { export {InspectorSidebar} from './ui/components/elements-inspector/sidebar'; export {Console} from './ui/components/console'; export {default as Sheet} from './ui/components/Sheet'; +export {KeyboardActions} from './MenuBar';