Skip to content

Commit 69a3f7c

Browse files
committed
fix hover and propagation
1 parent 4f8aa2d commit 69a3f7c

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

peerprep-fe/src/app/(main)/components/filter/FilterBadge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function FilterBadge({ filterType, value, onRemove }: FilterBadgeProps) {
3434
{`${filterType}: ${value}`}
3535
<button
3636
onClick={() => onRemove(filterType, value)}
37-
className="ml-1 focus:outline-none"
37+
className="ml-1 cursor-pointer focus:outline-none"
3838
>
3939
<X className="h-3 w-3" />
4040
</button>

peerprep-fe/src/app/(main)/components/filter/FilterSelect.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ export function FilterSelect({
3030
</SelectTrigger>
3131
<SelectContent>
3232
{options.map((option) => (
33-
<SelectItem key={option.value} value={option.value}>
33+
<SelectItem
34+
key={option.value}
35+
value={option.value}
36+
className="cursor-pointer"
37+
>
3438
{option.label}
3539
</SelectItem>
3640
))}

peerprep-fe/src/app/(main)/components/filter/TopicsPopover.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ export function TopicsPopover({
6262
<Input
6363
placeholder="Search topics..."
6464
value={searchTerm}
65-
onChange={(e) => setSearchTerm(e.target.value)}
65+
onChange={(e) => {
66+
e.stopPropagation();
67+
setSearchTerm(e.target.value);
68+
}}
6669
className="mb-2"
6770
/>
6871
</div>

peerprep-fe/src/components/navbar/Navbar.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ export default function Navbar() {
8282
<DropdownMenuItem disabled>
8383
<span className="font-semibold">Hi {user?.username}</span>
8484
</DropdownMenuItem>
85-
<DropdownMenuItem asChild>
85+
<DropdownMenuItem asChild className="cursor-pointer">
8686
<Link href="/profile" className="w-full">
8787
Profile
8888
</Link>
8989
</DropdownMenuItem>
90-
<DropdownMenuItem onClick={handleLogout}>
90+
<DropdownMenuItem
91+
onClick={handleLogout}
92+
className="cursor-pointer"
93+
>
9194
<LogOut className="mr-2 h-4 w-4" />
9295
<span>Sign out</span>
9396
</DropdownMenuItem>

0 commit comments

Comments
 (0)