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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
refactor: extract events table styling
Alexander Klein7c71294bc9fc
diff --git a/components/metrics/EventsTable.js b/components/metrics/EventsTable.jsindex 2d301f8d6..6b476605b 100644--- a/components/metrics/EventsTable.js+++ b/components/metrics/EventsTable.js@@ -9,6 +9,7 @@ import useFetch from 'hooks/useFetch';import usePageQuery from 'hooks/usePageQuery';import useShareToken from 'hooks/useShareToken';import { TOKEN_HEADER } from 'lib/constants';+import styles from './EventsTable.module.css';const EVENT_FILTER_DEFAULT = {value: 'EVENT_FILTER_DEFAULT',@@ -45,7 +46,7 @@ export default function EventsTable({ websiteId, ...props }) {return (<>{!loading && !error && eventTypes.length > 1 && (- <div style={{ display: 'flex', alignItems: 'center' }}>+ <div className={styles.filter}><DropDown value={eventType} options={dropDownOptions} onChange={setEventType} /></div>)}diff --git a/components/metrics/EventsTable.module.css b/components/metrics/EventsTable.module.cssnew file mode 100644index 000000000..259a4bbb7--- /dev/null+++ b/components/metrics/EventsTable.module.css@@ -0,0 +1,6 @@+.filter {+ display: flex;+ justify-content: flex-start;+ align-items: center;+ margin-bottom: 15px;+}