We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a497c commit 8106b7cCopy full SHA for 8106b7c
src/app/(public)/repos/_components/sorter.tsx
@@ -20,9 +20,11 @@ enum SortTypes {
20
LeastRecentlyUpdated = 'Least recently updated'
21
}
22
23
+type Pathname = '/repos' | `/repos/${string}`;
24
+
25
export function Sorter() {
26
const searchParams = useSearchParams();
- const pathname = usePathname();
27
+ const pathname = usePathname() as Pathname;
28
29
const navigationItems = [
30
{
0 commit comments