Migrate BugReporter

Summary: _typescript_

Reviewed By: danielbuechele

Differential Revision: D16666761

fbshipit-source-id: 7dc1c21c5c9bdf56908af4e251de16dad14cae38
This commit is contained in:
Pascal Hartig
2019-08-09 03:56:27 -07:00
committed by Facebook Github Bot
parent 3c2d9973e5
commit c5563be56b
5 changed files with 6 additions and 7 deletions

View File

@@ -33,7 +33,7 @@ import {
ACTIVE_SHEET_PLUGIN_SHEET,
} from './reducers/application.tsx';
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';
const version = remote.app.getVersion();

View File

@@ -11,7 +11,7 @@ import renderer from 'react-test-renderer';
import reducers from '../reducers/index.tsx';
import configureStore from 'redux-mock-store';
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
const mockStore = configureStore([])(reducers(undefined, {type: 'INIT'}));

View File

@@ -5,7 +5,7 @@
* @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 {Fragment, Component} from 'react';
import {connect} from 'react-redux';

View File

@@ -5,9 +5,8 @@
* @format
*/
import type {Logger} from '../fb-interfaces/Logger';
import type {Store} from '../reducers/index.tsx';
import {Logger} from '../fb-interfaces/Logger';
import {Store} from '../reducers/index';
export default class BugReporter {
constructor(logManager: Logger, store: Store) {}

View File

@@ -11,7 +11,7 @@ import {ContextMenuProvider} from 'flipper';
import GK from './fb-stubs/GK.tsx';
import {init as initLogger} from './fb-stubs/Logger';
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 {createStore} from 'redux';
import {persistStore} from 'redux-persist';