Back out Electron 7.1.1/7.1.2 upgrades
Summary: Original commit changeset: eddfbb3571c7 Original commit changeset: f7300f527b65 Pains me to do this, but probably our best chance right now to get a release out. Reviewed By: cekkaewnumchai Differential Revision: D18687890 fbshipit-source-id: 05d13aca71457ca6dd19f5b45d58158ae223e66f
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import electron from 'electron';
|
||||
import {FlexColumn, styled, Text, FlexRow, Input, colors, Glyph} from 'flipper';
|
||||
import React, {useState} from 'react';
|
||||
import {promises as fs} from 'fs';
|
||||
@@ -88,18 +87,16 @@ export function FilePathConfigField(props: {
|
||||
/>
|
||||
<FlexColumn
|
||||
onClick={() =>
|
||||
remote.dialog
|
||||
.showOpenDialog({
|
||||
remote.dialog.showOpenDialog(
|
||||
{
|
||||
properties: ['openDirectory', 'showHiddenFiles'],
|
||||
defaultPath: path.resolve('/'),
|
||||
})
|
||||
.then((result: electron.SaveDialogReturnValue) => {
|
||||
if (result.filePath) {
|
||||
const path: string = result.filePath.toString();
|
||||
setValue(path);
|
||||
props.onChange(path);
|
||||
}
|
||||
})
|
||||
},
|
||||
(paths: Array<string> | undefined) => {
|
||||
paths && setValue(paths[0]);
|
||||
paths && props.onChange(paths[0]);
|
||||
},
|
||||
)
|
||||
}>
|
||||
<CenteredGlyph name="dots-3-circle" variant="outline" />
|
||||
</FlexColumn>
|
||||
|
||||
Reference in New Issue
Block a user