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 (
|
||||
<>
|
||||
{entries.length ? (
|
||||
<Radio.Group
|
||||
value={selectedApp}
|
||||
size="small"
|
||||
@@ -111,6 +112,9 @@ export function AppSelector() {
|
||||
</AppInspectButton>
|
||||
</Dropdown>
|
||||
</Radio.Group>
|
||||
) : (
|
||||
<Text>{'No devices available'}</Text>
|
||||
)}
|
||||
<TroubleshootingGuide
|
||||
showGuide={GK.get('flipper_self_sufficiency')}
|
||||
devicesDetected={entries.length}
|
||||
|
||||
Reference in New Issue
Block a user