Skip to content

Commit 1fc52e1

Browse files
ANUPAM KHOSLAANUPAM KHOSLA
authored andcommitted
with-apollo -- Added manufacturers back
1 parent 1748f42 commit 1fc52e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

with-apollo/App.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ function StarshipDetails({ starship }) {
133133
<Text>- {starship.cost_in_credits ?? "N/A"} credits</Text>
134134
</View>
135135

136+
{starship.manufacturers?.length > 0 && (
137+
<View style={styles.section}>
138+
<Text style={styles.label}>Manufacturers</Text>
139+
{starship.manufacturers.map((m, idx) => (
140+
<Text key={idx}>- {m}</Text>
141+
))}
142+
</View>
143+
)}
144+
136145
{starship.film_names?.length > 0 && (
137146
<View style={styles.section}>
138147
<Text style={styles.label}>Appeared in</Text>

0 commit comments

Comments
 (0)