Skip to content

Commit c690c94

Browse files
fix(web): resolve type errors in contact filters and hooks
- Fix Select onValueChange type to accept string | null - Remove unsupported type prop from Base UI ToggleGroup - Fix CursorMeta import to avoid barrel export conflict Generated with oh-my-agent Co-Authored-By: First Fluke <our.first.fluke@gmail.com>
1 parent 7806037 commit c690c94

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/web/src/app/(main)/contacts/_components/contact-filters.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function ContactFilters() {
3232
/>
3333
</div>
3434
<div className="flex items-center gap-2">
35-
<Select value={filters.sort} onValueChange={(value: string) => setFilters({ sort: value || null })}>
35+
<Select value={filters.sort} onValueChange={(value: string | null) => setFilters({ sort: value || null })}>
3636
<SelectTrigger>
3737
<SelectValue />
3838
</SelectTrigger>
@@ -45,7 +45,6 @@ export function ContactFilters() {
4545
</SelectContent>
4646
</Select>
4747
<ToggleGroup
48-
type="multiple"
4948
variant="outline"
5049
size="sm"
5150
value={toggleValues}

apps/web/src/app/(main)/contacts/_hooks/use-contacts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
'use client';
22

33
import { useInfiniteQuery } from '@tanstack/react-query';
4-
import { api, type CursorMeta } from '@/lib/api';
4+
import { api } from '@/lib/api';
5+
import type { CursorMeta } from '@/lib/api/types';
56

67
export interface Contact {
78
id: number;

0 commit comments

Comments
 (0)