Improve UI when no devices connected
Summary: Remove empty dropdown when no devices connected. Show 'No devices available' test instead. Reviewed By: passy Differential Revision: D31088007 fbshipit-source-id: 8a3bf0e8fbff04c7dfe2581f95576b3ab5ed4bcb
This commit is contained in:
committed by
Facebook GitHub Bot
parent
97e5c897c6
commit
d5aaa0034d
@@ -85,6 +85,7 @@ export function AppSelector() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{entries.length ? (
|
||||||
<Radio.Group
|
<Radio.Group
|
||||||
value={selectedApp}
|
value={selectedApp}
|
||||||
size="small"
|
size="small"
|
||||||
@@ -111,6 +112,9 @@ export function AppSelector() {
|
|||||||
</AppInspectButton>
|
</AppInspectButton>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</Radio.Group>
|
</Radio.Group>
|
||||||
|
) : (
|
||||||
|
<Text>{'No devices available'}</Text>
|
||||||
|
)}
|
||||||
<TroubleshootingGuide
|
<TroubleshootingGuide
|
||||||
showGuide={GK.get('flipper_self_sufficiency')}
|
showGuide={GK.get('flipper_self_sufficiency')}
|
||||||
devicesDetected={entries.length}
|
devicesDetected={entries.length}
|
||||||
|
|||||||
Reference in New Issue
Block a user