Skip to content

Commit ca94a4b

Browse files
committed
Minor code cleanup
1 parent 9f78c7d commit ca94a4b

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/lib/icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { iconComponentMap } from 'config/icons';
33
import 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
*/
1010
export const getIconComponent = (type?: MarkerType) =>
11-
type ? iconComponentMap.get(type) ?? DefaultIcon : DefaultIcon;
11+
type ? (iconComponentMap.get(type) ?? DefaultIcon) : DefaultIcon;

src/lib/utils.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ export const getHexColor = (color: ColorResult) =>
139139
export 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
*

0 commit comments

Comments
 (0)