File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
frontend/src/app/dashboard/_components/FindMatch Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import { Category } from "@/types/Category";
21
21
import { Checkbox } from "@/components/ui/checkbox" ;
22
22
import { useState } from "react" ;
23
23
import { cn } from "@/lib/utils" ;
24
+ import { CaretDownIcon } from "@radix-ui/react-icons" ;
24
25
25
26
interface MatchConfigurationPanelProps {
26
27
difficulties : Difficulty [ ] ;
@@ -84,7 +85,16 @@ export default function ConfigurationPanel({
84
85
< Button
85
86
onClick = { ( ) => setCollapseDifficulties ( ! collapseDifficulties ) }
86
87
>
87
- Select difficulties
88
+ < div className = "flex flex-row justify-between w-full" >
89
+ < span > Select difficulties</ span >
90
+ < CaretDownIcon
91
+ className = { cn (
92
+ "w-6 h-6" ,
93
+ "transition-all duration-300" ,
94
+ collapseDifficulties && "transform rotate-180"
95
+ ) }
96
+ />
97
+ </ div >
88
98
</ Button >
89
99
< div
90
100
ref = { difficultyRef }
@@ -134,7 +144,16 @@ export default function ConfigurationPanel({
134
144
) ) }
135
145
</ div >
136
146
< Button onClick = { ( ) => setCollapseTopics ( ! collapseTopics ) } >
137
- Select topics
147
+ < div className = "flex flex-row items-center justify-between w-full" >
148
+ < span > Select topics</ span >
149
+ < CaretDownIcon
150
+ className = { cn (
151
+ "w-6 h-6" ,
152
+ "transition-all duration-300" ,
153
+ collapseTopics && "transform rotate-180"
154
+ ) }
155
+ />
156
+ </ div >
138
157
</ Button >
139
158
< div
140
159
ref = { topicsRef }
You can’t perform that action at this time.
0 commit comments