File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import { iconComponentMap } from 'config/icons';
3
3
import type { MarkerType } from 'types/markers' ;
4
4
5
5
/**
6
- * Get icon component associated with the specified marker type
6
+ * Get the icon component associated with the specified marker type
7
7
*
8
8
* @param type Target marker type
9
9
*/
10
10
export const getIconComponent = ( type ?: MarkerType ) =>
11
- type ? iconComponentMap . get ( type ) ?? DefaultIcon : DefaultIcon ;
11
+ type ? ( iconComponentMap . get ( type ) ?? DefaultIcon ) : DefaultIcon ;
Original file line number Diff line number Diff line change @@ -139,11 +139,6 @@ export const getHexColor = (color: ColorResult) =>
139
139
export const hasListValue = < TValue > ( value : TValue , list ?: Array < TValue > ) =>
140
140
! list || ! list . length || list . includes ( value ) ;
141
141
142
- /**
143
- * Check if application is running in development mode
144
- */
145
- export const isDevelopmentMode = ( ) => process . env . NODE_ENV === 'development' ;
146
-
147
142
/**
148
143
* Round number to the specified number of decimal places
149
144
*
You can’t perform that action at this time.
0 commit comments