updates to handle more than one weather widget

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

No files matched your search

+3 -2
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,
};