Skip to content

Commit

Permalink
RN-only icon
Browse files Browse the repository at this point in the history
Summary: ^

Reviewed By: antonk52, aigoncharov

Differential Revision: D50557283

fbshipit-source-id: d869a3159c9c0b0b7e06ac04a1d51bbbe10f0970
  • Loading branch information
lblasa authored and facebook-github-bot committed Oct 24, 2023
1 parent 1f13a9d commit 3ed89a5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions desktop/flipper-ui-core/src/sandy-chrome/WelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {getAppVersion} from '../utils/info';
import {getFlipperLib} from 'flipper-plugin';
import {ReleaseChannel} from 'flipper-common';
import {showChangelog} from '../chrome/ChangelogSheet';
import {getRenderHostInstance} from 'flipper-frontend-core';

const RowContainer = styled(Layout.Horizontal)({
alignItems: 'flex-start',
Expand Down Expand Up @@ -143,8 +142,6 @@ export function WelcomeScreenStaticView() {
}

function WelcomeScreenContent() {
const isHeadlessBuild =
getRenderHostInstance().serverConfig.environmentInfo.isHeadlessBuild;
const isInsidersChannel =
config.getReleaseChannel() === ReleaseChannel.INSIDERS;

Expand All @@ -160,7 +157,11 @@ function WelcomeScreenContent() {
}}
width={125}
height={125}
src={isHeadlessBuild ? './icon.png' : './icon.png'}
src={
process.env.FLIPPER_REACT_NATIVE_ONLY
? './icon-rn-only.png'
: './icon.png'
}
preview={false}
/>
<Title level={1}>Welcome to Flipper</Title>
Expand Down

0 comments on commit 3ed89a5

Please sign in to comment.