mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-01 20:39:44 +01:00
Reorder UTM params.
This commit is contained in:
parent
a02a098db8
commit
57e64893cf
@ -2,6 +2,7 @@ import { useContext } from 'react';
|
|||||||
import { firstBy } from 'thenby';
|
import { firstBy } from 'thenby';
|
||||||
import { ReportContext } from '../[reportId]/Report';
|
import { ReportContext } from '../[reportId]/Report';
|
||||||
import styles from './UTMView.module.css';
|
import styles from './UTMView.module.css';
|
||||||
|
import { UTM_PARAMS } from 'lib/constants';
|
||||||
|
|
||||||
function toArray(data: { [key: string]: number }) {
|
function toArray(data: { [key: string]: number }) {
|
||||||
return Object.keys(data)
|
return Object.keys(data)
|
||||||
@ -21,7 +22,7 @@ export default function UTMView() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{Object.keys(data).map(key => {
|
{UTM_PARAMS.map(key => {
|
||||||
return (
|
return (
|
||||||
<div key={key}>
|
<div key={key}>
|
||||||
<div className={styles.title}>{key}</div>
|
<div className={styles.title}>{key}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user