Added Panel component. New color scheme.

This commit is contained in:
Mike Cao 2025-03-20 23:12:56 -07:00
parent a7dad20d8a
commit 5d2c1e27c2
13 changed files with 64 additions and 64 deletions

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 };
}