mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Retention report UI updates.
This commit is contained in:
parent
9b8fa08d82
commit
2c8996b68f
12 changed files with 110 additions and 93 deletions
|
|
@ -6,10 +6,16 @@ import ReportMenu from '../ReportMenu';
|
|||
import ReportBody from '../ReportBody';
|
||||
import Magnet from 'assets/magnet.svg';
|
||||
import { REPORT_TYPES } from 'lib/constants';
|
||||
import { parseDateRange } from 'lib/date';
|
||||
import { endOfMonth, startOfMonth } from 'date-fns';
|
||||
|
||||
const defaultParameters = {
|
||||
type: REPORT_TYPES.retention,
|
||||
parameters: {},
|
||||
parameters: {
|
||||
dateRange: parseDateRange(
|
||||
`range:${startOfMonth(new Date()).getTime()}:${endOfMonth(new Date()).getTime()}`,
|
||||
),
|
||||
},
|
||||
};
|
||||
|
||||
export default function RetentionReport({ reportId }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue