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';
33import type { MarkerType } from 'types/markers' ;
44
55/**
6- * Get icon component associated with the specified marker type
6+ * Get the icon component associated with the specified marker type
77 *
88 * @param type Target marker type
99 */
1010export 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) =>
139139export const hasListValue = < TValue > ( value : TValue , list ?: Array < TValue > ) =>
140140 ! list || ! list . length || list . includes ( value ) ;
141141
142- /**
143- * Check if application is running in development mode
144- */
145- export const isDevelopmentMode = ( ) => process . env . NODE_ENV === 'development' ;
146-
147142/**
148143 * Round number to the specified number of decimal places
149144 *
You can’t perform that action at this time.
0 commit comments