Add settings UI

Summary:
Adds a simple UI for editing settings, a reducer and persistance config for the data.
These values aren't yet used for anything.

Reviewed By: passy

Differential Revision: D17684490

fbshipit-source-id: e76ac43ffa17d3606e59f4a1ccb940e8d9fbd9e8
This commit is contained in:
John Knox
2019-10-07 08:49:05 -07:00
committed by Facebook Github Bot
parent 8c15547597
commit eb64ff0832
8 changed files with 249 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import {
setSelectPluginsToExportActiveSheet,
setActiveSheet,
ACTIVE_SHEET_PLUGINS,
ACTIVE_SHEET_SETTINGS,
} from './reducers/application';
import {Store} from './reducers/';
import electron, {MenuItemConstructorOptions} from 'electron';
@@ -214,6 +215,11 @@ function getTemplate(
{
label: 'File',
submenu: [
{
label: 'Preferences',
accelerator: 'Cmd+,',
click: () => store.dispatch(setActiveSheet(ACTIVE_SHEET_SETTINGS)),
},
{
label: 'Import Flipper File...',
accelerator: 'CommandOrControl+O',