Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Removed Tag component.

Mike Cao57c3d03cc877
diff --git a/components/common/Tag.js b/components/common/Tag.js
deleted file mode 100644
index d30f0d0ff..000000000
--- a/components/common/Tag.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import classNames from 'classnames';
-import styles from './Tag.module.css';
-
-function Tag({ className, children }) {
- return <span className={classNames(styles.tag, className)}>{children}</span>;
-}
-
-export default Tag;
diff --git a/components/common/Tag.module.css b/components/common/Tag.module.css
deleted file mode 100644
index a872a7bfc..000000000
--- a/components/common/Tag.module.css
+++ /dev/null
@@ -1,7 +0,0 @@
-.tag {
- padding: 4px 6px;
- border-radius: 4px;
- margin-right: 10px;
- color: var(--primary400);
- background: var(--blue100);
-}
diff --git a/components/metrics/QueryParametersTable.js b/components/metrics/QueryParametersTable.js
index 8ed75beae..e8404bb4c 100644
--- a/components/metrics/QueryParametersTable.js
+++ b/components/metrics/QueryParametersTable.js
@@ -1,11 +1,11 @@
import { useState } from 'react';
import { safeDecodeURI } from 'next-basics';
-import Tag from 'components/common/Tag';
import FilterButtons from 'components/common/FilterButtons';
import { paramFilter } from 'lib/filters';
import { FILTER_RAW, FILTER_COMBINED } from 'lib/constants';
import MetricsTable from './MetricsTable';
import useMessages from 'hooks/useMessages';
+import styles from './QueryParametersTable.module.css';
const filters = {
[FILTER_RAW]: null,
@@ -38,10 +38,10 @@ export default function QueryParametersTable({ websiteId, showFilters, ...props
filter === FILTER_RAW ? (
x
) : (
- <>
- <Tag>{safeDecodeURI(p)}</Tag>
- {safeDecodeURI(v)}
- </>
+ <div className={styles.item}>
+ <div className={styles.param}>{safeDecodeURI(p)}</div>
+ <div className={styles.value}>{safeDecodeURI(v)}</div>
+ </div>
)
}
delay={0}
diff --git a/components/metrics/QueryParametersTable.module.css b/components/metrics/QueryParametersTable.module.css
new file mode 100644
index 000000000..ba5ca54a0
--- /dev/null
+++ b/components/metrics/QueryParametersTable.module.css
@@ -0,0 +1,16 @@
+.item {
+ display: inline-flex;
+ align-items: center;
+ margin-bottom: 1px;
+}
+
+.param {
+ padding: 0 8px;
+ color: var(--primary400);
+ background: var(--blue100);
+ border-radius: 4px;
+}
+
+.value {
+ padding: 0 8px;
+}