Skip to content

Commit

Permalink
renamed config maps
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardomcv committed Jul 20, 2020
1 parent 5053e3d commit 3eb2ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ export const OPEN_WEATHER_API_KEY = process.env.REACT_APP_API_KEY;

export const OPEN_WEATHER_API_ENDPOINT = 'https://api.openweathermap.org/data/2.5/weather';

export const LOCATION_VALUE_TO_LOCATION_QUERY_PARAM_MAP: Record<Location, string> = {
export const LOCATION_MAP: Record<Location, string> = {
lisbon: 'lisbon,pt',
newyork: 'new+york,us',
london: 'london,uk',
};

export const TEMPERATURE_UNIT_VALUE_TO_UNITS_QUERY_PARAM_MAP: Record<TemperatureUnit, string> = {
export const TEMPERATURE_UNIT_MAP: Record<TemperatureUnit, string> = {
celsius: 'metric',
farenheit: 'imperial',
};

0 comments on commit 3eb2ae7

Please sign in to comment.