feat: show spinner while rooms are loaded

pull/36/head
sualko 2020-05-17 12:10:56 +02:00
parent 1056c06687
commit a1ec50994e
1 changed files with 3 additions and 1 deletions

View File

@ -120,7 +120,9 @@ const App: React.FC<Props> = () => {
</tbody>
<tfoot>
<tr>
<td colSpan={2} />
<td colSpan={2}>
{!areRoomsLoaded && <span className="icon icon-loading-small icon-visible"></span>}
</td>
<td>
<NewRoomForm addRoom={addRoom} />
</td>