ability to use custom dates everywhere

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-26 16:40:09 +01:00
parent 94a0ac7bd0
commit 6a8656da3d
19 changed files with 254 additions and 95 deletions

View File

@@ -15,7 +15,8 @@ interface OverviewTopDevicesProps {
export default function OverviewTopDevices({
projectId,
}: OverviewTopDevicesProps) {
const { interval, range, previous } = useOverviewOptions();
const { interval, range, previous, startDate, endDate } =
useOverviewOptions();
const [filters, setFilter] = useEventQueryFilters();
const [widget, setWidget, widgets] = useOverviewWidget('tech', {
devices: {
@@ -23,6 +24,8 @@ export default function OverviewTopDevices({
btn: 'Devices',
chart: {
projectId,
startDate,
endDate,
events: [
{
segment: 'user',
@@ -51,6 +54,8 @@ export default function OverviewTopDevices({
btn: 'Browser',
chart: {
projectId,
startDate,
endDate,
events: [
{
segment: 'user',
@@ -79,6 +84,8 @@ export default function OverviewTopDevices({
btn: 'Browser Version',
chart: {
projectId,
startDate,
endDate,
events: [
{
segment: 'user',
@@ -107,6 +114,8 @@ export default function OverviewTopDevices({
btn: 'OS',
chart: {
projectId,
startDate,
endDate,
events: [
{
segment: 'user',
@@ -135,6 +144,8 @@ export default function OverviewTopDevices({
btn: 'OS Version',
chart: {
projectId,
startDate,
endDate,
events: [
{
segment: 'user',