Use RN-only icon on Welcome screen
Summary: ^ Reviewed By: antonk52 Differential Revision: D49827650 fbshipit-source-id: 82e202137dd3e8365c4898e583226410b8ea3645
This commit is contained in:
committed by
Facebook GitHub Bot
parent
526112a795
commit
b4b2f93662
@@ -28,6 +28,7 @@ import {getAppVersion} from '../utils/info';
|
|||||||
import {getFlipperLib} from 'flipper-plugin';
|
import {getFlipperLib} from 'flipper-plugin';
|
||||||
import {ReleaseChannel} from 'flipper-common';
|
import {ReleaseChannel} from 'flipper-common';
|
||||||
import {showChangelog} from '../chrome/ChangelogSheet';
|
import {showChangelog} from '../chrome/ChangelogSheet';
|
||||||
|
import {getRenderHostInstance} from 'flipper-frontend-core';
|
||||||
|
|
||||||
const RowContainer = styled(Layout.Horizontal)({
|
const RowContainer = styled(Layout.Horizontal)({
|
||||||
alignItems: 'flex-start',
|
alignItems: 'flex-start',
|
||||||
@@ -142,6 +143,8 @@ export function WelcomeScreenStaticView() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function WelcomeScreenContent() {
|
function WelcomeScreenContent() {
|
||||||
|
const isHeadlessBuild =
|
||||||
|
getRenderHostInstance().serverConfig.environmentInfo.isHeadlessBuild;
|
||||||
const isInsidersChannel =
|
const isInsidersChannel =
|
||||||
config.getReleaseChannel() === ReleaseChannel.INSIDERS;
|
config.getReleaseChannel() === ReleaseChannel.INSIDERS;
|
||||||
|
|
||||||
@@ -157,7 +160,7 @@ function WelcomeScreenContent() {
|
|||||||
}}
|
}}
|
||||||
width={125}
|
width={125}
|
||||||
height={125}
|
height={125}
|
||||||
src="./icon.png"
|
src={isHeadlessBuild ? './icon.png' : './icon-rn-only.png'}
|
||||||
preview={false}
|
preview={false}
|
||||||
/>
|
/>
|
||||||
<Title level={1}>Welcome to Flipper</Title>
|
<Title level={1}>Welcome to Flipper</Title>
|
||||||
|
|||||||
BIN
desktop/static/icon-rn-only.png
Normal file
BIN
desktop/static/icon-rn-only.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 43 KiB |
Reference in New Issue
Block a user