forked from farhoodlabs/paperclip
Add project workspace detail page
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -165,3 +165,11 @@ export function projectRouteRef(project: { id: string; urlKey?: string | null; n
|
||||
export function projectUrl(project: { id: string; urlKey?: string | null; name?: string | null }): string {
|
||||
return `/projects/${projectRouteRef(project)}`;
|
||||
}
|
||||
|
||||
/** Build a project workspace URL scoped under its project. */
|
||||
export function projectWorkspaceUrl(
|
||||
project: { id: string; urlKey?: string | null; name?: string | null },
|
||||
workspaceId: string,
|
||||
): string {
|
||||
return `${projectUrl(project)}/workspaces/${workspaceId}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user