Skip to content

Commit 18c0794

Browse files
committed
Minor code cleanup
1 parent 4adb689 commit 18c0794

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/lib/markers.ts

+4-6
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const getMarkerOptionTypes = (...markers: Array<MarkerOptions>) =>
119119
*
120120
* @param type Target animal type
121121
*/
122-
export const getNeedZoneCounts = (type: AnimalType) =>
122+
const getNeedZoneCounts = (type: AnimalType) =>
123123
animalMarkerNeedZoneCounts.get(type) ?? [0, 0, 0];
124124

125125
/**
@@ -164,10 +164,8 @@ export const isGenericMarkerType = (
164164
* @param marker Marker to validate
165165
* @param options Target filter options
166166
*/
167-
export const isMarkerFiltered = (
168-
marker: MarkerOptions,
169-
options: MapFilterOptions,
170-
) => hasListValue(marker.type, options.types);
167+
const isMarkerFiltered = (marker: MarkerOptions, options: MapFilterOptions) =>
168+
hasListValue(marker.type, options.types);
171169

172170
/**
173171
* Determine if a marker is visible at the current map scale
@@ -176,7 +174,7 @@ export const isMarkerFiltered = (
176174
* @param type Marker type
177175
* @param visibilityMap Map of marker types and their minimum visibility scale
178176
*/
179-
export const isMarkerVisibleAtScale = (
177+
const isMarkerVisibleAtScale = (
180178
mapScale: number,
181179
type: MarkerType,
182180
visibilityMap: Map<MarkerType, number>,

src/pages/firearms/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type { Animal } from 'types/animals';
1818
import type { Weapon } from 'types/weapons';
1919
import styles from './styles.module.css';
2020

21-
const AnimalSelectorPage = () => {
21+
const FirearmsPage = () => {
2222
// Extract route parameters
2323
const router = useRouter();
2424
const { q: weaponId } = router.query;
@@ -129,4 +129,4 @@ const AnimalSelectorPage = () => {
129129
);
130130
};
131131

132-
export default AnimalSelectorPage;
132+
export default FirearmsPage;

src/pages/life-cycle/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { PageContent } from 'components/PageContent';
44
import { fauna } from 'config/animals';
55
import { useTranslator } from 'hooks';
66

7-
const AnimalLifeCyclesPage = () => {
7+
const LifeCyclePage = () => {
88
// Retrieve application translator
99
const translate = useTranslator();
1010

@@ -23,4 +23,4 @@ const AnimalLifeCyclesPage = () => {
2323
);
2424
};
2525

26-
export default AnimalLifeCyclesPage;
26+
export default LifeCyclePage;

0 commit comments

Comments
 (0)