Added Panel component. New color scheme.

This commit is contained in:
Mike Cao committed 2025-03-20 23:12:56 -07:00
1 parent a7dad20d8a
commit 5d2c1e27c2
13 files changed
+64 -64

No files matched your search

+2 -5
View File
@@ -1,9 +1,6 @@
import { usePathname } from 'next/navigation';
export function useTeamUrl(): {
teamId?: string;
renderTeamUrl: (url: string) => string;
} {
export function useTeamUrl() {
const pathname = usePathname();
const [, teamId] = pathname.match(/^\/teams\/([a-f0-9-]+)/) || [];
@@ -11,5 +8,5 @@ export function useTeamUrl(): {
return teamId ? `/teams/${teamId}${url}` : url;
}
return { teamId, renderTeamUrl };
return { teamId, renderTeamUrl, pathname };
}