-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathappConfig.js
79 lines (78 loc) · 1.97 KB
/
appConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import MainWeatherDisplay from "./components/MainWeatherDisplay";
import WeatherMetrics from "./components/WeatherMetrics";
import HourlyForecast from "./components/HourlyForecast";
import DailyForecast from "./components/DailyForecast";
import WeatherAlerts from "./components/WeatherAlerts";
import AirQualityIndex from "./components/AirQualityIndex"; // Import the new component
import PrecipitationForecast from "./components/PrecipitationForecast";
import UvIndex from "./components/UvIndex";
import WindForecast from "./components/WindForecast";
import PollenCount from "./components/PollenCount";
import Astronomy from "./components/Astronomy";
import WeatherMap from "./components/WeatherMap";
import {
sampleWeatherMapData,
sampleAstronomy,
samplePollenCount,
sampleWindForecast,
sampleUvIndex,
samplePrecipitationForecast,
sampleAlerts,
sampleAQI,
sampleMainDisplayData,
sampleMetricData,
} from "./data/sampleWeatherData";
export const _sections = [
{
key: "main",
component: MainWeatherDisplay,
props: sampleMainDisplayData,
},
{
key: "metrics",
component: WeatherMetrics,
props: sampleMetricData,
},
{
key: "aqi",
component: AirQualityIndex,
props: sampleAQI,
},
{
key: "precipitation",
component: PrecipitationForecast,
props: { forecast: samplePrecipitationForecast },
},
{
key: "uvIndex",
component: UvIndex,
props: sampleUvIndex,
},
{
key: "windForecast",
component: WindForecast,
props: sampleWindForecast,
},
{
key: "pollenCount",
component: PollenCount,
props: samplePollenCount,
},
{
key: "astronomy",
component: Astronomy,
props: sampleAstronomy,
},
{
key: "weatherMap",
component: WeatherMap,
props: sampleWeatherMapData,
},
{
key: "alerts",
component: WeatherAlerts,
props: { alerts: sampleAlerts },
}, // Add this line
{ key: "hourly", component: HourlyForecast },
{ key: "daily", component: DailyForecast },
];