Extracted servers list group from home component to a reusable component

This commit is contained in:
Alejandro Celaya
2020-03-08 11:16:57 +01:00
parent 6395e4e00b
commit 99042c0979
12 changed files with 138 additions and 92 deletions

View File

@@ -4,7 +4,7 @@ import { Card } from 'reactstrap';
import PropTypes from 'prop-types';
import qs from 'qs';
import DateRangeRow from '../utils/DateRangeRow';
import MutedMessage from '../utils/MutedMessage';
import Message from '../utils/Message';
import { formatDate } from '../utils/utils';
import SortableBarGraph from './SortableBarGraph';
import { shortUrlVisitsType } from './reducers/shortUrlVisits';
@@ -64,7 +64,7 @@ const ShortUrlVisits = (
if (loading) {
const message = loadingLarge ? 'This is going to take a while... :S' : 'Loading...';
return <MutedMessage loading>{message}</MutedMessage>;
return <Message loading>{message}</Message>;
}
if (error) {
@@ -76,7 +76,7 @@ const ShortUrlVisits = (
}
if (isEmpty(visits)) {
return <MutedMessage>There are no visits matching current filter :(</MutedMessage>;
return <Message>There are no visits matching current filter :(</Message>;
}
const { os, browsers, referrers, countries, cities, citiesForMap } = processStatsFromVisits(