Skip to content

Commit 8106b7c

Browse files
Fix type error
1 parent 02a497c commit 8106b7c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/(public)/repos/_components/sorter.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ enum SortTypes {
2020
LeastRecentlyUpdated = 'Least recently updated'
2121
}
2222

23+
type Pathname = '/repos' | `/repos/${string}`;
24+
2325
export function Sorter() {
2426
const searchParams = useSearchParams();
25-
const pathname = usePathname();
27+
const pathname = usePathname() as Pathname;
2628

2729
const navigationItems = [
2830
{

0 commit comments

Comments
 (0)