mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-01 00:10:12 +01:00
Fix small issues with PingTable
This commit is contained in:
parent
edf86155d1
commit
53b1dc4e35
@ -3,12 +3,14 @@ import {Card} from "react-bootstrap";
|
||||
import CardHeader from "../CardHeader";
|
||||
import {faWifi} from "@fortawesome/free-solid-svg-icons";
|
||||
import PingTable from "../../table/PingTable";
|
||||
import {ChartLoader} from "../../navigation/Loader";
|
||||
|
||||
const PingTableCard = ({data}) => {
|
||||
return (
|
||||
<Card id={'ping-per-country'}>
|
||||
<CardHeader icon={faWifi} color="green" label={'html.label.connectionInfo'}/>
|
||||
<PingTable countries={data?.table || []}/>
|
||||
{data && <PingTable countries={data?.table || []}/>}
|
||||
{!data && <ChartLoader/>}
|
||||
</Card>
|
||||
)
|
||||
};
|
||||
|
@ -30,7 +30,7 @@ const PingTable = ({countries}) => {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{countries.length ? countries.map((country, i) => <PingRow key={i} country={country}/>) : <tr>
|
||||
{countries.length ? countries.map(country => <PingRow key={country?.country} country={country}/>) : <tr>
|
||||
<td>{t('generic.noData')}</td>
|
||||
<td>-</td>
|
||||
<td>-</td>
|
||||
|
Loading…
Reference in New Issue
Block a user