Show note when no servers.

This commit is contained in:
Dane Everitt 2019-12-22 15:31:12 -08:00
parent c96bad4080
commit 293ebc9344
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 5 additions and 1 deletions

View File

@ -19,10 +19,14 @@ export default () => {
return ( return (
<div className={'my-10'}> <div className={'my-10'}>
{ {servers.length === 0 ?
servers.map(server => ( servers.map(server => (
<ServerRow key={server.uuid} server={server} className={'mt-2'}/> <ServerRow key={server.uuid} server={server} className={'mt-2'}/>
)) ))
:
<p className={'text-center text-sm text-neutral-400'}>
It looks like you have no servers.
</p>
} }
</div> </div>
); );