Use if/else statement
This commit is contained in:
parent
d2d6b463cf
commit
9e2bc2d863
1 changed files with 4 additions and 4 deletions
|
@ -8,16 +8,16 @@ const InstanceList = await fetch('https://codeberg.org/MinPluto/MinPluto/raw/bra
|
|||
<th>URL</th>
|
||||
<th>Official</th>
|
||||
<th>Region</th>
|
||||
<th>Cloudflare</th>
|
||||
<th>Uses Cloudflare</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{InstanceList.map((server) =>
|
||||
<tr>
|
||||
<td><a href={server[1].uri}>{server[1].uri}</a></td>
|
||||
<td>{server[1].official}</td>
|
||||
<td>{server[1].official ? <p>Yes</p> : <p>No</p>}</td>
|
||||
<td>{server[1].region}</td>
|
||||
<td>{server[1].CLOUDFLARE}</td>
|
||||
<td>{server[1].CLOUDFLARE ? <p>Yes</p> : <p>No</p>}</td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
@ -28,7 +28,7 @@ table {
|
|||
border: 1px solid #3d3846;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
table-layout: fixed;
|
||||
table-layout: auto;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 1px;
|
||||
text-align: left;
|
||||
|
|
Reference in a new issue