()
| 65 | } |
| 66 | |
| 67 | function ShipFallback() { |
| 68 | return ( |
| 69 | <div className="ship-info"> |
| 70 | <div className="ship-info__img-wrapper"> |
| 71 | <img src="/img/fallback-ship.png" alt={shipName} /> |
| 72 | </div> |
| 73 | <section> |
| 74 | <h2> |
| 75 | {shipName} |
| 76 | <sup> |
| 77 | XX <small>lyh</small> |
| 78 | </sup> |
| 79 | </h2> |
| 80 | </section> |
| 81 | <section> |
| 82 | <ul> |
| 83 | {Array.from({ length: 3 }).map((_, i) => ( |
| 84 | <li key={i}> |
| 85 | <label>loading</label>:{' '} |
| 86 | <span> |
| 87 | XX <small>(loading)</small> |
| 88 | </span> |
| 89 | </li> |
| 90 | ))} |
| 91 | </ul> |
| 92 | </section> |
| 93 | </div> |
| 94 | ) |
| 95 | } |
| 96 | |
| 97 | function ShipError() { |
| 98 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected