fix: display name with host or name from json

See #2.
pull/4/head
Kairee Wu 7 years ago
parent 443dd4ee8f
commit a19256c9e8
No known key found for this signature in database
GPG Key ID: E91BB34E2C3FDA63

@ -127,7 +127,7 @@ const ServerRow: React.FC<SergateData> = (props) => {
<Row key={server.host} className="sr-body" type="flex" justify="center" gutter={resGutter}>
<Col xs={3} sm={3} md={1} lg={1}>{ onlineTag(server.online4, 'IPv4') }</Col>
<Col xs={0} sm={0} md={0} lg={1}>{ onlineTag(server.online6, 'IPv6') }</Col>
<Col xs={3} sm={3} md={3} lg={2}>{ server.host }</Col>
<Col xs={3} sm={3} md={3} lg={2}>{ server.host || server.name }</Col>
<Col xs={3} sm={3} md={2} lg={2}>{ server.type }</Col>
<Col xs={3} sm={2} md={2} lg={2}><Flag loc={ server.location } /></Col>
<Col xs={3} sm={4} md={3} lg={2}>{ transUptime(server.uptime) }</Col>

Loading…
Cancel
Save