Messages for devices so they can be localized.
This commit is contained in:
1 parent
c707b49400
commit
2d9523f963
19 files changed
+111
-39
No files matched your search
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import MetricsTable from './MetricsTable';
|
||||
import { deviceFilter } from 'lib/filters';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import { getDeviceMessage } from 'components/messages';
|
||||
|
||||
export default function DevicesTable({ websiteId, limit, onExpand }) {
|
||||
return (
|
||||
@@ -12,6 +13,7 @@ export default function DevicesTable({ websiteId, limit, onExpand }) {
|
||||
websiteId={websiteId}
|
||||
limit={limit}
|
||||
dataFilter={deviceFilter}
|
||||
renderLabel={({ x }) => getDeviceMessage(x)}
|
||||
onExpand={onExpand}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user