File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/features/activities/components Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ const AllActivities = ({ keyword }: AllActivitiesProps) => {
5050 setPage ( 1 ) ;
5151 } ;
5252
53+ const selectedSortLabel = SORT_OPTIONS . find (
54+ ( option ) => option . value === selectedSort ,
55+ ) ?. label ;
56+
5357 const handleSortChange = ( value : 'latest' | 'price_asc' | 'price_desc' ) => {
5458 setSelectedSort ( value ) ;
5559 setPage ( 1 ) ;
@@ -70,13 +74,13 @@ const AllActivities = ({ keyword }: AllActivitiesProps) => {
7074 </ p >
7175 < Dropdown
7276 trigger = {
73- < button className = "txt-16 -medium flex items-center text-black" >
74- 가격 < ChevronDown size = { 18 } className = "ml-1" />
77+ < button className = "txt-14 -medium flex items-center text-black" >
78+ { selectedSortLabel } < ChevronDown size = { 20 } className = "ml-1" />
7579 </ button >
7680 }
7781 dropdownClassName = "absolute right-0"
7882 >
79- < div className = "border-sub-300 txt-16 -medium h-[11rem ] w-[11.2rem ] overflow-hidden rounded-xl border-[0.1rem] bg-white" >
83+ < div className = "border-sub-300 txt-14 -medium h-[12.3rem ] w-[9.6rem ] overflow-hidden rounded-xl border-[0.1rem] bg-white" >
8084 { SORT_OPTIONS . map ( ( { label, value } ) => (
8185 < button
8286 key = { value }
@@ -85,7 +89,7 @@ const AllActivities = ({ keyword }: AllActivitiesProps) => {
8589 value as 'latest' | 'price_asc' | 'price_desc' ,
8690 )
8791 }
88- className = { `txt-14-medium w-full px-4 py-2 hover:bg-blue-50 ${
92+ className = { `txt-14-medium h-[4.1rem] w-full px-[1rem] py-[0.6rem] hover:bg-blue-50 ${
8993 selectedSort === value ? 'text-main font-bold' : 'text-black'
9094 } `}
9195 >
You can’t perform that action at this time.
0 commit comments