Skip to content

Commit 8b3df2a

Browse files
committed
Add dropdown icons for difficulty and topic selections
1 parent ab01079 commit 8b3df2a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

frontend/src/app/dashboard/_components/FindMatch/ConfigurationPanel.tsx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { Category } from "@/types/Category";
2121
import { Checkbox } from "@/components/ui/checkbox";
2222
import { useState } from "react";
2323
import { cn } from "@/lib/utils";
24+
import { CaretDownIcon } from "@radix-ui/react-icons";
2425

2526
interface MatchConfigurationPanelProps {
2627
difficulties: Difficulty[];
@@ -84,7 +85,16 @@ export default function ConfigurationPanel({
8485
<Button
8586
onClick={() => setCollapseDifficulties(!collapseDifficulties)}
8687
>
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>
8898
</Button>
8999
<div
90100
ref={difficultyRef}
@@ -134,7 +144,16 @@ export default function ConfigurationPanel({
134144
))}
135145
</div>
136146
<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>
138157
</Button>
139158
<div
140159
ref={topicsRef}

0 commit comments

Comments
 (0)