Added ProfileButton to cloud mode.

This commit is contained in:
Mike Cao 2023-04-06 20:34:02 -07:00
parent f56374b259
commit 25d4a9cec0
4 changed files with 16 additions and 9 deletions

View file

@ -35,7 +35,10 @@ export default function MetricsTable({
const { get, useQuery } = useApi();
const { data, isLoading, isFetched, error } = useQuery(
['websites:metrics', websiteId, type, modified, url, referrer, os, browser, device, country],
[
'websites:metrics',
{ websiteId, type, modified, url, referrer, os, browser, device, country },
],
() =>
get(`/websites/${websiteId}/metrics`, {
type,