@@ -13,7 +13,6 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
13
13
import { NavBar , NavPage } from 'app/components/home/Navbar' ;
14
14
import { LeaderboardElement } from 'app/components/Leaderboard/LeaderboardElement' ;
15
15
import { Timer } from 'app/components/Leaderboard/Timer' ;
16
- import SocketHandler from 'app/containers/SocketHandler' ;
17
16
import { Routes } from 'app/routes' ;
18
17
import * as styles from 'app/styles/Leaderboard.module.css' ;
19
18
import * as LeaderboardInterfaces from 'app/types/Leaderboard' ;
@@ -94,7 +93,6 @@ export class Leaderboard extends React.Component<
94
93
< >
95
94
< NavBar isLoggedIn = { isLoggedIn } page = { NavPage . LEADERBOARD } />
96
95
< Grid fluid = { true } className = { classnames ( styles . Leaderboard ) } >
97
- { isLoggedIn ? < SocketHandler /> : null }
98
96
< Row className = { classnames ( 'py-4 pl-3' ) } >
99
97
< Col
100
98
sm = { 9 }
@@ -185,59 +183,6 @@ export class Leaderboard extends React.Component<
185
183
</ div >
186
184
</ div >
187
185
</ Col >
188
- < Col >
189
- < div className = { styles . dropdown } >
190
- < button className = { styles . dropbtn } >
191
- { LeaderboardInterfaces . UserTypeName [ this . state . currentUserType ] }
192
- </ button >
193
- < FontAwesomeIcon style = { { color : 'white' } } icon = { faCaretDown } />
194
- < div className = { styles [ 'dropdown-content' ] } >
195
- < a
196
- style = { { cursor : 'pointer' } }
197
- onClick = { ( ) => {
198
- this . setState ( {
199
- currentUserType : LeaderboardInterfaces . UserType . STUDENT ,
200
- } ) ;
201
- } }
202
- className = {
203
- this . state . currentUserType === LeaderboardInterfaces . UserType . STUDENT
204
- ? classnames ( styles . dropDownMenuActive , styles . dropDownMenuActive )
205
- : classnames ( styles . dropDownMenu )
206
- }
207
- >
208
- { LeaderboardInterfaces . UserTypeName . STUDENT }
209
- </ a >
210
- < a
211
- style = { { cursor : 'pointer' } }
212
- onClick = { ( ) => {
213
- this . setState ( {
214
- currentUserType : LeaderboardInterfaces . UserType . PROFESSIONAL ,
215
- } ) ;
216
- } }
217
- className = {
218
- this . state . currentUserType === LeaderboardInterfaces . UserType . PROFESSIONAL
219
- ? classnames ( styles . dropDownMenuActive , styles . dropDownMenuActive )
220
- : classnames ( styles . dropDownMenu )
221
- }
222
- >
223
- { LeaderboardInterfaces . UserTypeName . PROFESSIONAL }
224
- </ a >
225
- < a
226
- style = { { cursor : 'pointer' } }
227
- onClick = { ( ) => {
228
- this . setState ( { currentUserType : LeaderboardInterfaces . UserType . ALL } ) ;
229
- } }
230
- className = {
231
- this . state . currentUserType === LeaderboardInterfaces . UserType . ALL
232
- ? classnames ( styles . dropDownMenuActive , styles . dropDownMenuActive )
233
- : classnames ( styles . dropDownMenu )
234
- }
235
- >
236
- { LeaderboardInterfaces . UserTypeName . All }
237
- </ a >
238
- </ div >
239
- </ div >
240
- </ Col >
241
186
< Col style = { { position : 'absolute' , left : '96.5%' } } >
242
187
< button
243
188
className = { styles . button }
0 commit comments