Skip to content

Commit 05e3410

Browse files
committed
Centralize on New York, add type fix
1 parent 38a8e55 commit 05e3410

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/web/src/app/map/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { useEffect } from "preact/hooks";
22
import MapLibreGL from "maplibre-gl";
3-
import { AppActionTypes, AppState } from "../reducer";
3+
import { AppActionTypes, AppDispatch, AppState } from "../reducer";
44

55
interface MapProps {
66
appState: AppState;
7-
dispatchAppState: any;
7+
dispatchAppState: AppDispatch;
88
}
99

1010
const MAP_OPTIONS = {
11-
center: [-74.5087291, 40.28],
11+
center: [-74, 40.6973],
1212
zoom: 8,
1313
} as {
1414
center: [number, number];

packages/web/src/app/reducer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function appReducer(state: AppState, action: AppAction) {
138138

139139
type AsyncAction = {
140140
type: AppActionTypes.UPDATE_VIEW;
141-
data: {
141+
data?: {
142142
currentTimestamp: Date;
143143
};
144144
};

0 commit comments

Comments
 (0)