Adding ability to show both bluetooth and internet icons in extension library item tiles.

This commit is contained in:
Evelyn Eastmond committed 2019-03-12 10:10:59 -04:00
1 parent dadef73bfa
commit 31625d6807
2 files changed
+11 -13

No files matched your search

+6 -12
View File
@@ -72,18 +72,12 @@ class LibraryItemComponent extends React.PureComponent {
<div
className={styles.featuredExtensionMetadataDetail}
>
<img
src={this.props.bluetoothRequired ?
bluetoothIconURL :
internetConnectionIconURL
}
/>
<img
src={this.props.bluetoothRequired ?
bluetoothIconURL :
internetConnectionIconURL
}
/>
{this.props.bluetoothRequired ? (
<img src={bluetoothIconURL} />
) : null}
{this.props.internetConnectionRequired ? (
<img src={internetConnectionIconURL} />
) : null}
</div>
</div>
) : null}
+5 -1
View File
@@ -163,6 +163,7 @@ export default [
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: false,
peripheralImage: microbitPeripheralImage,
@@ -192,6 +193,7 @@ export default [
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: false,
peripheralImage: ev3PeripheralImage,
@@ -221,6 +223,7 @@ export default [
featured: true,
disabled: false,
bluetoothRequired: true,
internetConnectionRequired: true,
launchPeripheralConnectionFlow: true,
useAutoScan: true,
peripheralImage: wedoPeripheralImage,
@@ -250,6 +253,7 @@ export default [
),
featured: true,
disabled: true,
bluetoothRequired: true
bluetoothRequired: true,
internetConnectionRequired: true
}
];