Migrate BugReporter
Summary: _typescript_ Reviewed By: danielbuechele Differential Revision: D16666761 fbshipit-source-id: 7dc1c21c5c9bdf56908af4e251de16dad14cae38
This commit is contained in:
committed by
Facebook Github Bot
parent
3c2d9973e5
commit
c5563be56b
@@ -33,7 +33,7 @@ import {
|
|||||||
ACTIVE_SHEET_PLUGIN_SHEET,
|
ACTIVE_SHEET_PLUGIN_SHEET,
|
||||||
} from './reducers/application.tsx';
|
} from './reducers/application.tsx';
|
||||||
import type {Logger} from './fb-interfaces/Logger.js';
|
import type {Logger} from './fb-interfaces/Logger.js';
|
||||||
import type BugReporter from './fb-stubs/BugReporter.js';
|
import type BugReporter from './fb-stubs/BugReporter.tsx';
|
||||||
import type BaseDevice from './devices/BaseDevice.js';
|
import type BaseDevice from './devices/BaseDevice.js';
|
||||||
const version = remote.app.getVersion();
|
const version = remote.app.getVersion();
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import renderer from 'react-test-renderer';
|
|||||||
import reducers from '../reducers/index.tsx';
|
import reducers from '../reducers/index.tsx';
|
||||||
import configureStore from 'redux-mock-store';
|
import configureStore from 'redux-mock-store';
|
||||||
import {init as initLogger} from '../fb-stubs/Logger';
|
import {init as initLogger} from '../fb-stubs/Logger';
|
||||||
import BugReporter from '../fb-stubs/BugReporter.js';
|
import BugReporter from '../fb-stubs/BugReporter.tsx';
|
||||||
|
|
||||||
// create redux store with initial state
|
// create redux store with initial state
|
||||||
const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'}));
|
const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'}));
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type BugReporter from '../fb-stubs/BugReporter.js';
|
import type BugReporter from '../fb-stubs/BugReporter.tsx';
|
||||||
import type {FlipperDevicePlugin, FlipperPlugin} from '../plugin.tsx';
|
import type {FlipperDevicePlugin, FlipperPlugin} from '../plugin.tsx';
|
||||||
import {Fragment, Component} from 'react';
|
import {Fragment, Component} from 'react';
|
||||||
import {connect} from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
|
|||||||
@@ -5,9 +5,8 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type {Logger} from '../fb-interfaces/Logger';
|
import {Logger} from '../fb-interfaces/Logger';
|
||||||
|
import {Store} from '../reducers/index';
|
||||||
import type {Store} from '../reducers/index.tsx';
|
|
||||||
|
|
||||||
export default class BugReporter {
|
export default class BugReporter {
|
||||||
constructor(logManager: Logger, store: Store) {}
|
constructor(logManager: Logger, store: Store) {}
|
||||||
@@ -11,7 +11,7 @@ import {ContextMenuProvider} from 'flipper';
|
|||||||
import GK from './fb-stubs/GK.tsx';
|
import GK from './fb-stubs/GK.tsx';
|
||||||
import {init as initLogger} from './fb-stubs/Logger';
|
import {init as initLogger} from './fb-stubs/Logger';
|
||||||
import App from './App.js';
|
import App from './App.js';
|
||||||
import BugReporter from './fb-stubs/BugReporter.js';
|
import BugReporter from './fb-stubs/BugReporter.tsx';
|
||||||
import setupPrefetcher from './fb-stubs/Prefetcher.js';
|
import setupPrefetcher from './fb-stubs/Prefetcher.js';
|
||||||
import {createStore} from 'redux';
|
import {createStore} from 'redux';
|
||||||
import {persistStore} from 'redux-persist';
|
import {persistStore} from 'redux-persist';
|
||||||
|
|||||||
Reference in New Issue
Block a user