Hide emulator loading page for disabkled platforms
Reviewed By: lblasa Differential Revision: D50405264 fbshipit-source-id: c051414ad3b269cf2bc145aa4da13c20517edb36
This commit is contained in:
committed by
Facebook GitHub Bot
parent
65fef5fbc3
commit
3d4b36f14e
@@ -160,7 +160,9 @@ export const LaunchEmulatorDialog = withTrackingScope(
|
||||
return <NoSDKsEnabledAlert onClose={onClose} />;
|
||||
}
|
||||
|
||||
const items = [
|
||||
let items: (JSX.Element | null)[] = [];
|
||||
if (androidEnabled) {
|
||||
items.push(
|
||||
<Title key="android-title" name="Android emulators" />,
|
||||
androidEmulators.length == 0 ? (
|
||||
<Typography.Paragraph style={{textAlign: 'center'}}>
|
||||
@@ -232,7 +234,10 @@ export const LaunchEmulatorDialog = withTrackingScope(
|
||||
);
|
||||
})
|
||||
.value(),
|
||||
|
||||
);
|
||||
}
|
||||
if (iosEnabled) {
|
||||
items.push(
|
||||
<Title key="ios-title" name="iOS Simulators" />,
|
||||
iosEmulators.length == 0 ? (
|
||||
<Typography.Paragraph style={{textAlign: 'center'}}>
|
||||
@@ -286,7 +291,9 @@ export const LaunchEmulatorDialog = withTrackingScope(
|
||||
</VirtualDeviceRow>
|
||||
))
|
||||
.value(),
|
||||
].filter((item) => item != null);
|
||||
);
|
||||
}
|
||||
items = items.filter((item) => item != null);
|
||||
|
||||
const loadingSpinner = (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user