Events table.

This commit is contained in:
Mike Cao 2020-08-24 23:49:14 -07:00
parent 2addb96e4b
commit 5206622d5a
13 changed files with 131 additions and 31 deletions

View file

@ -13,13 +13,13 @@ export default function Referrers({
}) {
const [filter, setFilter] = useState('Combined');
const renderLink = url => {
const renderLink = ({ x: url }) => {
return url.startsWith('http') ? (
<a href={url} target="_blank" rel="noreferrer">
{url}
{decodeURI(url)}
</a>
) : (
url
decodeURI(url)
);
};
@ -40,7 +40,7 @@ export default function Referrers({
raw: filter === 'Raw',
}}
onExpand={onExpand}
labelRenderer={renderLink}
renderLabel={renderLink}
/>
);
}