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 = {
219219 title : "DISCOVER LEARNING RESOURCES" ,
220220 items : [
221221 {
222- title : "New " ,
222+ title : "Recently Added " ,
223223 icon : < RiFileAddLine /> ,
224224 href : SEARCH_NEW ,
225225 } ,
Original file line number Diff line number Diff line change @@ -52,10 +52,6 @@ import { ResourceCard } from "../ResourceCard/ResourceCard"
5252import { useSearchParams } from "@mitodl/course-search-utils/react-router"
5353import { useUserMe } from "api/hooks/user"
5454
55- export const StyledSelect = styled ( SimpleSelect ) `
56- min-width: 160px;
57- `
58-
5955const StyledResourceTabs = styled ( ResourceCategoryTabs . TabList ) `
6056 margin-top: 0 px;
6157`
@@ -470,7 +466,7 @@ const SORT_OPTIONS = [
470466 value : "" ,
471467 } ,
472468 {
473- label : "New " ,
469+ label : "Recently Added " ,
474470 value : "new" ,
475471 } ,
476472 {
@@ -596,7 +592,7 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
596592 }
597593
598594 const searchModeDropdown = (
599- < StyledSelect
595+ < SimpleSelect
600596 size = "small"
601597 value = { searchParams . get ( "search_mode" ) || DEFAULT_SEARCH_MODE }
602598 onChange = { ( e ) =>
@@ -615,7 +611,7 @@ const SearchDisplay: React.FC<SearchDisplayProps> = ({
615611 )
616612
617613 const sortDropdown = (
618- < StyledSelect
614+ < SimpleSelect
619615 size = "small"
620616 value = { requestParams . sortby || "" }
621617 onChange = { ( e ) => setParamValue ( "sortby" , e . target . value ) }
Original file line number Diff line number Diff line change @@ -8,9 +8,8 @@ import type {
88 BooleanFacetKey ,
99} from "@mitodl/course-search-utils"
1010import { BOOLEAN_FACET_NAMES } from "@mitodl/course-search-utils"
11- import { Skeleton , styled } from "ol-components"
11+ import { Skeleton , styled , SimpleSelect } from "ol-components"
1212import type { SimpleSelectOption } from "ol-components"
13- import { StyledSelect } from "@/page-components/SearchDisplay/SearchDisplay"
1413
1514const StyledSkeleton = styled ( Skeleton ) `
1615 display: inline-flex;
@@ -117,7 +116,7 @@ const AvailableFacetsDropdowns: React.FC<
117116
118117 return (
119118 facetItems . length && (
120- < StyledSelect
119+ < SimpleSelect
121120 key = { facetSetting . name }
122121 value = { displayValue }
123122 multiple = { isMultiple }
You can’t perform that action at this time.
0 commit comments