fix(ui) - browser icon
This commit is contained in:
parent
ff191ece6e
commit
8d2811a4cf
2 changed files with 3 additions and 2 deletions
|
|
@ -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'
|
||||
}),
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue