MCPcopy Create free account
hub / github.com/apollographql/fullstack-tutorial / LaunchTile

Function LaunchTile

final/client/src/components/launch-tile.tsx:21–34  ·  view source on GitHub ↗
({ launch })

Source from the content-addressed store, hash-verified

19}
20
21const LaunchTile: React.FC<LaunchTileProps> = ({ launch }) => {
22 const { id, mission, rocket } = launch;
23 return (
24 <StyledLink
25 to={`/launch/${id}`}
26 style={{
27 backgroundImage: getBackgroundImage(id),
28 }}
29 >
30 <h3>{mission ? mission.name : ''}</h3>
31 <h5>{rocket && rocket.name}</h5>
32 </StyledLink>
33 );
34};
35
36export default LaunchTile;
37

Callers

nothing calls this directly

Calls 1

getBackgroundImageFunction · 0.70

Tested by

no test coverage detected