Use getRenderHost from flipper-frontned-core in flipper-ui-core
Summary: See D37139129 Reviewed By: lblasa Differential Revision: D37236435 fbshipit-source-id: 927e9f741bfedb65165f5d24f0acfb775925cdc7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
fab8849c73
commit
17ab7a86ef
@@ -12,7 +12,7 @@ import React, {Component} from 'react';
|
||||
import {reportUsage} from 'flipper-common';
|
||||
import {Modal} from 'antd';
|
||||
import {Dialog, theme} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
const changelogKey = 'FlipperChangelogStatus';
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import {isEqual} from 'lodash';
|
||||
import {Platform, reportUsage, Settings} from 'flipper-common';
|
||||
import {Modal, Button} from 'antd';
|
||||
import {Layout, withTrackingScope, _NuxManagerContext} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
const WIZARD_FINISHED_LOCAL_STORAGE_KEY = 'platformSelectWizardFinished';
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ import {useStore} from '../utils/useStore';
|
||||
import {isLoggedIn} from '../fb-stubs/user';
|
||||
import {useValue} from 'flipper-plugin';
|
||||
import {reportPlatformFailures} from 'flipper-common';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
type NextAction = 'select-rating' | 'leave-comment' | 'finished';
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import React, {useState, useCallback} from 'react';
|
||||
import {capture, getCaptureLocation, getFileName} from '../utils/screenshot';
|
||||
import {CameraOutlined, VideoCameraOutlined} from '@ant-design/icons';
|
||||
import {useStore} from '../utils/useStore';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import {path} from 'flipper-plugin';
|
||||
|
||||
async function openFile(path: string) {
|
||||
|
||||
@@ -40,7 +40,7 @@ import {
|
||||
_NuxManagerContext,
|
||||
NUX,
|
||||
} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import {loadTheme} from '../utils/loadTheme';
|
||||
|
||||
type OwnProps = {
|
||||
|
||||
@@ -8,9 +8,8 @@
|
||||
*/
|
||||
|
||||
import React, {Component} from 'react';
|
||||
import {BaseDevice} from 'flipper-frontend-core';
|
||||
import {BaseDevice, getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import {Button, Glyph, colors} from '../ui';
|
||||
import {getRenderHostInstance} from '../RenderHost';
|
||||
import {path} from 'flipper-plugin';
|
||||
|
||||
type OwnProps = {
|
||||
|
||||
@@ -25,7 +25,7 @@ import {Dispatch, Action} from 'redux';
|
||||
import PluginPackageInstaller from './PluginPackageInstaller';
|
||||
import {Toolbar} from 'flipper-plugin';
|
||||
import {Alert, Button, Input, Tooltip, Typography} from 'antd';
|
||||
import {getRenderHostInstance} from '../../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
import {WarningOutlined} from '@ant-design/icons';
|
||||
|
||||
const {Text, Link} = Typography;
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
import styled from '@emotion/styled';
|
||||
import React, {useState} from 'react';
|
||||
import {Toolbar, FileSelector} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from '../../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
const CenteredGlyph = styled(Glyph)({
|
||||
margin: 'auto',
|
||||
|
||||
@@ -14,7 +14,7 @@ import configureStore from 'redux-mock-store';
|
||||
import {Provider} from 'react-redux';
|
||||
import type {PluginDetails, UpdatablePluginDetails} from 'flipper-common';
|
||||
import {Store} from '../../../reducers';
|
||||
import {getRenderHostInstance} from '../../../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
let getUpdatablePluginsMock: jest.Mock<any, any>;
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import {
|
||||
} from '../../ui';
|
||||
import React, {useState, useEffect} from 'react';
|
||||
import {getFlipperLib, theme} from 'flipper-plugin';
|
||||
import {getRenderHostInstance} from '../../RenderHost';
|
||||
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||
|
||||
export const ConfigFieldContainer = styled(FlexRow)({
|
||||
paddingLeft: 10,
|
||||
|
||||
Reference in New Issue
Block a user