diff --git a/components/metrics/PagesTable.js b/components/metrics/PagesTable.js
index ba9a3153..e7b7e77a 100644
--- a/components/metrics/PagesTable.js
+++ b/components/metrics/PagesTable.js
@@ -1,38 +1,16 @@
-import { useState } from 'react';
import FilterLink from 'components/common/FilterLink';
-import FilterButtons from 'components/common/FilterButtons';
-import { urlFilter } from 'lib/filters';
import MetricsTable from './MetricsTable';
-import { FILTER_COMBINED, FILTER_RAW } from 'lib/constants';
import useMessages from 'hooks/useMessages';
-const filters = {
- [FILTER_RAW]: null,
- [FILTER_COMBINED]: urlFilter,
-};
-
-export default function PagesTable({ websiteId, showFilters, ...props }) {
- const [filter, setFilter] = useState(FILTER_COMBINED);
+export default function PagesTable({ websiteId, ...props }) {
const { formatMessage, labels } = useMessages();
- const buttons = [
- {
- label: formatMessage(labels.filterCombined),
- key: FILTER_COMBINED,
- },
- {
- label: formatMessage(labels.filterRaw),
- key: FILTER_RAW,
- },
- ];
-
const renderLink = ({ x: url }) => {
return ;
};
return (
<>
- {showFilters && }
{
- if (websiteId) {
- return get(`/websites/${websiteId}`);
- }
- },
- { cacheTime: 0 },
+ () => get(`/websites/${websiteId}`),
+ { enabled: !!websiteId, cacheTime: 0 },
);
+ const [values, setValues] = useState(null);
+ const [tab, setTab] = useState('details');
const handleSave = data => {
showToast({ message: formatMessage(messages.saved), variant: 'success' });
@@ -58,7 +56,7 @@ export default function WebsiteSettings({ websiteId }) {
}
>
-
+
-
+