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