Dialog management cleanup
Summary: This diff moves the dialogs * Settings * Plugin Manager * Doctor * Sign in * Changelog To use the imperative dialog APIs, rather then organising them through reducers which adds a lot of indirection which isn't really needed but hard to follow. Reviewed By: passy Differential Revision: D30192002 fbshipit-source-id: ba38b2e700da3e442653786448fcbf85074981ad
This commit is contained in:
committed by
Facebook GitHub Bot
parent
89b193b438
commit
9e5575cf69
@@ -17,11 +17,7 @@ import {CertificateExchangeMedium} from './utils/CertificateProvider';
|
||||
import {isLoggedIn} from '../fb-stubs/user';
|
||||
import React from 'react';
|
||||
import {Typography} from 'antd';
|
||||
import {
|
||||
ACTIVE_SHEET_SIGN_IN,
|
||||
ServerPorts,
|
||||
setActiveSheet,
|
||||
} from '../reducers/application';
|
||||
import {ServerPorts} from '../reducers/application';
|
||||
import {AndroidDeviceManager} from './devices/android/androidDeviceManager';
|
||||
import {IOSDeviceManager} from './devices/ios/iOSDeviceManager';
|
||||
import metroDevice from './devices/metro/metroDeviceManager';
|
||||
@@ -35,6 +31,7 @@ import {
|
||||
import {ServerDevice} from './devices/ServerDevice';
|
||||
import {Base64} from 'js-base64';
|
||||
import MetroDevice from './devices/metro/MetroDevice';
|
||||
import {showLoginDialog} from '../chrome/fb-stubs/SignInSheet';
|
||||
|
||||
export interface FlipperServerConfig {
|
||||
enableAndroid: boolean;
|
||||
@@ -135,11 +132,9 @@ export class FlipperServerImpl implements FlipperServer {
|
||||
<>
|
||||
and{' '}
|
||||
<Typography.Link
|
||||
onClick={() =>
|
||||
this.store.dispatch(
|
||||
setActiveSheet(ACTIVE_SHEET_SIGN_IN),
|
||||
)
|
||||
}>
|
||||
onClick={() => {
|
||||
showLoginDialog();
|
||||
}}>
|
||||
log in to Facebook Intern
|
||||
</Typography.Link>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user