updates to handle more than one weather widget

This commit is contained in:
Ben Phelps 2022-08-27 15:26:00 +03:00
parent dc6b172df9
commit 7b6cbb4ee1
4 changed files with 50 additions and 28 deletions

View file

@ -1,9 +1,10 @@
import Weather from "components/widgets/weather/weather";
import WeatherApi from "components/widgets/weather/weather";
import OpenWeatherMap from "components/widgets/openweathermap/weather";
import Resources from "components/widgets/resources/resources";
const widgetMappings = {
weather: Weather,
weather: WeatherApi, // This key will be deprecated in the future
weatherapi: WeatherApi,
openweathermap: OpenWeatherMap,
resources: Resources,
};