mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 08:07:12 +01:00
Move date range selection into redux.
This commit is contained in:
parent
d06c077019
commit
c5cb19a3bf
21 changed files with 141 additions and 138 deletions
|
|
@ -3,14 +3,7 @@ import MetricsTable from './MetricsTable';
|
|||
import { urlFilter } from 'lib/filters';
|
||||
import ButtonGroup from '../common/ButtonGroup';
|
||||
|
||||
export default function PagesTable({
|
||||
websiteId,
|
||||
websiteDomain,
|
||||
startDate,
|
||||
endDate,
|
||||
limit,
|
||||
onExpand,
|
||||
}) {
|
||||
export default function PagesTable({ websiteId, websiteDomain, limit, onExpand }) {
|
||||
const [filter, setFilter] = useState('Combined');
|
||||
|
||||
return (
|
||||
|
|
@ -20,8 +13,6 @@ export default function PagesTable({
|
|||
metric="Views"
|
||||
headerComponent={limit ? null : <FilterButtons selected={filter} onClick={setFilter} />}
|
||||
websiteId={websiteId}
|
||||
startDate={startDate}
|
||||
endDate={endDate}
|
||||
limit={limit}
|
||||
dataFilter={urlFilter}
|
||||
filterOptions={{ domain: websiteDomain, raw: filter === 'Raw' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue