This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from "react" ;
2
2
import PT from "prop-types" ;
3
3
import axios from "axios" ;
4
+ import clsx from 'clsx' ;
4
5
import FiltersSideMenu from "../../components/FiltersSideMenu" ;
5
6
import { ReactComponent as DownArrowIcon } from "../../assets/images/down-arrow.svg" ;
6
7
import ProfileCard from "../../components/ProfileCard" ;
@@ -277,19 +278,19 @@ export default function SearchGlobal({ keyword }) {
277
278
{ sortByDropdownShown && (
278
279
< ul className = { style . dropdown } >
279
280
< li
280
- className = { style . dropdownItem }
281
+ className = { clsx ( style . dropdownItem , orderBy === 'name' && style . selected ) }
281
282
onClick = { ( ) => setOrderBy ( "name" ) }
282
283
>
283
284
Name
284
285
</ li >
285
286
< li
286
- className = { style . dropdownItem }
287
+ className = { clsx ( style . dropdownItem , orderBy === 'location' && style . selected ) }
287
288
onClick = { ( ) => setOrderBy ( "location" ) }
288
289
>
289
290
Location
290
291
</ li >
291
292
< li
292
- className = { style . dropdownItem }
293
+ className = { clsx ( style . dropdownItem , orderBy === 'isAvailable' && style . selected ) }
293
294
onClick = { ( ) => setOrderBy ( "isAvailable" ) }
294
295
>
295
296
Availability
Original file line number Diff line number Diff line change 110
110
background-color : $blue ;
111
111
}
112
112
}
113
+
114
+ .selected {
115
+ background-color : $blue ;
116
+ color : $white ;
117
+ }
113
118
}
114
119
115
120
.sortMode {
Original file line number Diff line number Diff line change 22
22
"@hapi/joi" : " ^16.1.8" ,
23
23
"aws-sdk" : " ^2.627.0" ,
24
24
"axios" : " ^0.19.2" ,
25
+ "clsx" : " ^1.1.1" ,
25
26
"bluebird" : " ^3.5.1" ,
26
27
"body-parser" : " ^1.19.0" ,
27
28
"config" : " ^3.2.4" ,
You can’t perform that action at this time.
0 commit comments