Always show Flipper version

Summary:
This moves the version display from the updater component
to the titlebar itself, so it'll be shown even in dev mode.

This is already useful when using it on platforms like Linux
where the updater isn't supported, but will also help when
moving to the launcher model.

Reviewed By: jknoxville

Differential Revision: D13819139

fbshipit-source-id: cbc127b8ccdf932f823bc1f40319f296516dfc31
This commit is contained in:
Pascal Hartig
2019-01-28 04:48:36 -08:00
committed by Facebook Github Bot
parent 1b9c32b103
commit 2a0f0b3dde
6 changed files with 39 additions and 13 deletions

View File

@@ -24,6 +24,7 @@ test('TitleBar is rendered', () => {
toggleLeftSidebarVisible={() => {}}
toggleRightSidebarVisible={() => {}}
setActiveSheet={_sheet => {}}
version="1.0.0"
/>
</Provider>,
);

View File

@@ -55,6 +55,12 @@ exports[`TitleBar is rendered 1`] = `
<div
className="css-12zzrdt"
/>
<span
className="css-lli23c"
>
1.0.0
-dev
</span>
<div
className="css-1cecbfb"
onClick={[Function]}