Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eireland committed Jan 26, 2024
1 parent 7f8ff59 commit 9e97bca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/location-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@ import React, { useEffect, useRef, useState } from "react";
import classnames from "classnames";
import { createMap, selectStations } from "../utils/codapHelpers";
import { autoComplete, geoLocSearch } from "../utils/geonameSearch";
import { kStationsCollectionName } from "../constants";
import { kStationsCollectionName, geonamesUser, kOffsetMap, timezoneServiceURL } from "../constants";
import { useStateContext } from "../hooks/use-state";
import { IPlace } from "../types";
import { findNearestActiveStation } from "../utils/getWeatherStations";
import OpenMapIcon from "../assets/images/icon-map.svg";
// import EditIcon from "../assets/images/icon-edit.svg";
import LocationIcon from "../assets/images/icon-location.svg";
import CurrentLocationIcon from "../assets/images/icon-current-location.svg";
import { geonamesUser, kOffsetMap, timezoneServiceURL } from "../constants";

import "./location-picker.scss";

Expand All @@ -26,7 +25,6 @@ export const LocationPicker = () => {
const locationDivRef = useRef<HTMLDivElement>(null);
const locationInputEl = useRef<HTMLInputElement>(null);
const locationSelectionListEl = useRef<HTMLUListElement>(null);
const selectedLocation = location;
const unitDistanceText = units === "standard" ? "mi" : "km";
const stationDistance = weatherStationDistance && units === "standard"
? Math.round((weatherStationDistance * 0.6 * 10) / 10)
Expand Down

0 comments on commit 9e97bca

Please sign in to comment.