@@ -69,7 +69,7 @@ const HomepageHero = () => {
69
69
isStudent = { false } />
70
70
</ Col >
71
71
</ Row >
72
- </ Container >
72
+ </ Container >
73
73
</ div > ;
74
74
}
75
75
} ;
@@ -118,7 +118,7 @@ export const HomepagePhy = () => {
118
118
useEffect ( ( ) => { document . title = SITE_TITLE ; } , [ ] ) ;
119
119
120
120
const user = useAppSelector ( selectors . user . orNull ) ;
121
-
121
+
122
122
const { data : news } = useGetNewsPodListQuery ( { subject : "physics" } ) ;
123
123
124
124
const [ dashboardView , setDashboardView ] = useState < "student" | "teacher" | undefined > ( undefined ) ;
@@ -158,16 +158,16 @@ export const HomepagePhy = () => {
158
158
useEffect ( ( ) => {
159
159
getEventsList ( { startIndex : 0 , limit : 2 , typeFilter : EventTypeFilter [ "All groups" ] , statusFilter : EventStatusFilter [ "Upcoming events" ] , stageFilter : [ STAGE . ALL ] } ) ;
160
160
} , [ ] ) ;
161
-
161
+
162
162
return < >
163
163
< div id = "homepage" className = "homepage pb-5" >
164
164
< section id = "dashboard" >
165
165
{ isLoggedIn ( user ) && ( isTutorOrAbove ( user )
166
166
? < TeacherDashboard assignmentsSetByMe = { assignmentsSetByMe } quizzesSetByMe = { isTutor ( user ) ? [ ] : quizzesSetByMe } groups = { groups } myAssignments = { myAssignments }
167
- myQuizAssignments = { myQuizAssignments } streakRecord = { streakRecord } dashboardView = { dashboardView } setDashboardView = { setDashboardView } />
167
+ myQuizAssignments = { myQuizAssignments } streakRecord = { streakRecord } dashboardView = { dashboardView } setDashboardView = { setDashboardView } />
168
168
: < StudentDashboard assignments = { myAssignments } quizAssignments = { myQuizAssignments } streakRecord = { streakRecord } groups = { groups } /> ) }
169
169
</ section >
170
- < section id = "homepage-hero" >
170
+ < section id = "homepage-hero" >
171
171
{ ! isLoggedIn ( user ) && < HomepageHero /> }
172
172
</ section >
173
173
< Container >
@@ -177,15 +177,15 @@ export const HomepagePhy = () => {
177
177
< h3 > Explore and learn!</ h3 >
178
178
< div className = "section-divider ms-2" />
179
179
</ div >
180
- < ListViewCards cards = { cards } />
181
- </ div >
180
+ < ListViewCards cards = { cards } />
181
+ </ div >
182
182
</ section >
183
183
< section id = "events-news" >
184
184
< Row className = "mt-5 row-cols-1 row-cols-lg-2" >
185
185
< div className = "d-flex flex-column mt-3" >
186
186
< div className = "d-flex" >
187
- < h3 > Upcoming Events </ h3 >
188
- < Link to = "/events" className = "news-events-link" > More events</ Link >
187
+ < h3 > Upcoming events </ h3 >
188
+ < Link to = "/events" className = "news-events-link" > More events</ Link >
189
189
< div className = "section-divider-bold" />
190
190
</ div >
191
191
< ShowLoadingQuery
@@ -199,10 +199,10 @@ export const HomepagePhy = () => {
199
199
</ Row > ;
200
200
} } />
201
201
</ div >
202
- < div className = "d-flex flex-column mt-3" >
202
+ < div className = "d-flex flex-column mt-3" >
203
203
< div className = "d-flex" >
204
- < h3 > News & Features </ h3 >
205
- < Link to = "/news" className = "news-events-link" > More news</ Link >
204
+ < h3 > News and features </ h3 >
205
+ < Link to = "/news" className = "news-events-link" > More news</ Link >
206
206
< div className = "section-divider-bold" />
207
207
</ div >
208
208
{ news && < Row className = "h-100" >
0 commit comments