Fix Flipper lints #16
Summary: Larger list of fixes. Adding another package to the flipper export is a bit nasty but it unblocks us for now and centralises `remote` access which seems like a win for FAAS. Reviewed By: mweststrate Differential Revision: D30785421 fbshipit-source-id: 931297e8566b5d8a213b69ae87d0cda7648b3ed4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
262cd6105b
commit
47099cfd31
@@ -7,9 +7,14 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import {FlipperPlugin} from 'flipper';
|
||||
import {FlexColumn} from 'flipper';
|
||||
import {ButtonGroup, Button, styled, colors} from 'flipper';
|
||||
import {
|
||||
FlipperPlugin,
|
||||
FlexColumn,
|
||||
ButtonGroup,
|
||||
Button,
|
||||
styled,
|
||||
colors,
|
||||
} from 'flipper';
|
||||
import React, {ChangeEvent} from 'react';
|
||||
|
||||
export type Sandbox = {
|
||||
@@ -75,9 +80,12 @@ export default class SandboxView extends FlipperPlugin<
|
||||
if (!this.client.isConnected) {
|
||||
return;
|
||||
}
|
||||
this.client.call('getSandbox', {}).then((results: Array<Sandbox>) => {
|
||||
this.setState({sandboxes: results});
|
||||
});
|
||||
this.client
|
||||
.call('getSandbox', {})
|
||||
.then((results: Array<Sandbox>) => {
|
||||
this.setState({sandboxes: results});
|
||||
})
|
||||
.catch((e) => console.error('[sandbox] getSandbox call failed:', e));
|
||||
}
|
||||
|
||||
onSendSandboxEnvironment = (sandbox: string) => {
|
||||
@@ -90,7 +98,8 @@ export default class SandboxView extends FlipperPlugin<
|
||||
this.setState({showFeedback: false});
|
||||
}, 3000);
|
||||
this.setState({showFeedback: result.result});
|
||||
});
|
||||
})
|
||||
.catch((e) => console.error('[sandbox] setSandbox call failed:', e));
|
||||
};
|
||||
|
||||
onChangeSandbox = (e: ChangeEvent<HTMLInputElement>) => {
|
||||
|
||||
Reference in New Issue
Block a user