File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ const navData: NavData = {
219
219
title : "DISCOVER LEARNING RESOURCES" ,
220
220
items : [
221
221
{
222
- title : "New " ,
222
+ title : "Recently Added " ,
223
223
icon : < RiFileAddLine /> ,
224
224
href : SEARCH_NEW ,
225
225
} ,
Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ import { ResourceCard } from "../ResourceCard/ResourceCard"
52
52
import { useSearchParams } from "@mitodl/course-search-utils/react-router"
53
53
import { useUserMe } from "api/hooks/user"
54
54
55
- export const StyledSelect = styled ( SimpleSelect ) `
56
- min-width: 160px;
57
- `
58
-
59
55
const StyledResourceTabs = styled ( ResourceCategoryTabs . TabList ) `
60
56
margin-top: 0 px;
61
57
`
@@ -470,7 +466,7 @@ const SORT_OPTIONS = [
470
466
value : "" ,
471
467
} ,
472
468
{
473
- label : "New " ,
469
+ label : "Recently Added " ,
474
470
value : "new" ,
475
471
} ,
476
472
{
@@ -596,7 +592,7 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
596
592
}
597
593
598
594
const searchModeDropdown = (
599
- < StyledSelect
595
+ < SimpleSelect
600
596
size = "small"
601
597
value = { searchParams . get ( "search_mode" ) || DEFAULT_SEARCH_MODE }
602
598
onChange = { ( e ) =>
@@ -615,7 +611,7 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
615
611
)
616
612
617
613
const sortDropdown = (
618
- < StyledSelect
614
+ < SimpleSelect
619
615
size = "small"
620
616
value = { requestParams . sortby || "" }
621
617
onChange = { ( e ) => setParamValue ( "sortby" , e . target . value ) }
Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ import type {
8
8
BooleanFacetKey ,
9
9
} from "@mitodl/course-search-utils"
10
10
import { BOOLEAN_FACET_NAMES } from "@mitodl/course-search-utils"
11
- import { Skeleton , styled } from "ol-components"
11
+ import { Skeleton , styled , SimpleSelect } from "ol-components"
12
12
import type { SimpleSelectOption } from "ol-components"
13
- import { StyledSelect } from "@/page-components/SearchDisplay/SearchDisplay"
14
13
15
14
const StyledSkeleton = styled ( Skeleton ) `
16
15
display: inline-flex;
@@ -117,7 +116,7 @@ const AvailableFacetsDropdowns: React.FC<
117
116
118
117
return (
119
118
facetItems . length && (
120
- < StyledSelect
119
+ < SimpleSelect
121
120
key = { facetSetting . name }
122
121
value = { displayValue }
123
122
multiple = { isMultiple }
You can’t perform that action at this time.
0 commit comments