@@ -19,19 +19,24 @@ function HomeView() {
19
19
} = usePropertiesContext ( ) ;
20
20
21
21
const elements : JSX . Element [ ] = [ ] ;
22
+ const elementLabels : string [ ] = [ ] ;
23
+
22
24
elements . push ( < MassBankInfo /> ) ;
25
+ elementLabels . push ( 'MassBank' ) ;
23
26
elements . push (
24
27
< Content >
25
28
< SectionDivider label = "Features" />
26
29
< FeaturesOverview />
27
30
</ Content > ,
28
31
) ;
32
+ elementLabels . push ( 'Features' ) ;
29
33
elements . push (
30
34
< Content >
31
35
< SectionDivider label = "Quick Search" />
32
36
< QuickSearch />
33
37
</ Content > ,
34
38
) ;
39
+ elementLabels . push ( 'Quick Search' ) ;
35
40
36
41
if ( homepageNewsSectionText !== '' ) {
37
42
if ( homepageNewsSectionText !== 'disabled' ) {
@@ -44,6 +49,7 @@ function HomeView() {
44
49
/>
45
50
</ Content > ,
46
51
) ;
52
+ elementLabels . push ( 'Latest News' ) ;
47
53
}
48
54
} else {
49
55
elements . push (
@@ -52,6 +58,7 @@ function HomeView() {
52
58
< News />
53
59
</ Content > ,
54
60
) ;
61
+ elementLabels . push ( 'Latest News' ) ;
55
62
}
56
63
57
64
if ( homepageFundingSectionText !== '' ) {
@@ -65,6 +72,7 @@ function HomeView() {
65
72
/>
66
73
</ Content > ,
67
74
) ;
75
+ elementLabels . push ( 'Funding' ) ;
68
76
}
69
77
} else {
70
78
elements . push (
@@ -73,6 +81,7 @@ function HomeView() {
73
81
< AcknowledgementNFDI4Chem />
74
82
</ Content > ,
75
83
) ;
84
+ elementLabels . push ( 'Funding' ) ;
76
85
}
77
86
78
87
if (
@@ -88,16 +97,9 @@ function HomeView() {
88
97
/>
89
98
</ Content > ,
90
99
) ;
100
+ elementLabels . push ( homepageAdditionalSectionName ) ;
91
101
}
92
102
93
- const elementLabels = [
94
- 'MassBank' ,
95
- 'Features' ,
96
- 'Quick Search' ,
97
- 'Latest News' ,
98
- 'Funding' ,
99
- ] ;
100
-
101
103
return (
102
104
< Layout
103
105
style = { {
0 commit comments