fix(ui) - browser icon

This commit is contained in:
Shekar Siri 2021-09-09 13:28:47 +05:30
parent ff191ece6e
commit 8d2811a4cf
2 changed files with 3 additions and 2 deletions

View file

@ -1,7 +1,7 @@
import Record from 'Types/Record';
import Target from 'Types/target';
import { camelCased } from 'App/utils';
// import { getEventIcon } from 'Types/filter';
import { getEventIcon } from 'Types/filter';
const CLICK = 'CLICK';
const INPUT = 'INPUT';
@ -105,6 +105,6 @@ export default Record({
operator: event.operator || getOperatorDefault(event.type),
// value: target ? target.label : event.value,
value: typeof value === 'string' ? [value] : value,
icon: 'filters/metadata'
icon: event.type ? getEventIcon(event.type) : 'filters/metadata'
}),
})

View file

@ -124,6 +124,7 @@ export const getEventIcon = (filter) => {
type = type || key;
if (type === KEYS.USER_COUNTRY) return 'map-marker-alt';
if (type === KEYS.USER_BROWSER) return 'window';
if (type === KEYS.USERBROWSER) return 'window';
if (type === KEYS.PLATFORM) return 'window';
if (type === TYPES.CLICK) return 'filters/click';