Added Panel component. New color scheme.
This commit is contained in:
1 parent
a7dad20d8a
commit
5d2c1e27c2
13 files changed
+64
-64
No files matched your search
@@ -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 };
|
||||
}
|
||||
Reference in new issue
Block a user