Skip to content
Snippets Groups Projects
Commit ee5499f1 authored by kuzdogan's avatar kuzdogan
Browse files

Spinner before loading last seen date

parent f32b54d7
Branches main
No related tags found
No related merge requests found
......@@ -24,10 +24,10 @@ export default function ValidatorList({ validators, lastBlocks, onlineCount14d,
<tr>
<th>Institute Name</th>
<th>Address</th>
<th>Online in 24h?</th>
<th>Online in 14 days?</th>
<th>Last seen online</th>
<th>Show in graph</th>
<th className='text-center'>Online in 24h?</th>
<th className='text-center'>Online in 14 days?</th>
<th className='text-center'>Last seen online</th>
<th className='text-center'>Show in graph</th>
</tr>
</thead>
<tbody>
......@@ -147,13 +147,18 @@ function InstituteRow({ address, lastBlock, addGraphValidator, removeGraphValida
{/* Show last seen */}
<td>
<div className="text-center last-seen">
{
lastBlock
? <div>
<div>
{moment.utc(lastBlock).format('DD MMM YYYY')}
</div>
<div>
{moment.utc(lastBlock).format('HH:mm') + ' UTC'}
</div>
</div>
: <Spinner animation="border" size='sm' />
}
</div>
</td>
<td className="text-center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment