mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
refactor: extract events table styling
This commit is contained in:
parent
49b45acf4b
commit
7c71294bc9
@ -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>
|
||||
)}
|
||||
|
6
components/metrics/EventsTable.module.css
Normal file
6
components/metrics/EventsTable.module.css
Normal file
@ -0,0 +1,6 @@
|
||||
.filter {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
margin-bottom: 15px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user