Skip to content

Commit 0a67f38

Browse files
authored
[admin] Remove non-working workspace links (#16630)
1 parent 36ff5f7 commit 0a67f38

File tree

2 files changed

+0
-145
lines changed

2 files changed

+0
-145
lines changed

components/dashboard/src/admin/WorkspaceDetail.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { Link } from "react-router-dom";
1212
import { getGitpodService } from "../service/service";
1313
import { getProjectPath } from "../workspaces/WorkspaceEntry";
1414
import { WorkspaceStatusIndicator } from "../workspaces/WorkspaceStatusIndicator";
15-
import { getAdminLinks } from "./gcp-info";
1615
import Property from "./Property";
1716

1817
export default function WorkspaceDetail(props: { workspace: WorkspaceAndInstance }) {
@@ -44,17 +43,6 @@ export default function WorkspaceDetail(props: { workspace: WorkspaceAndInstance
4443
}
4544
};
4645

47-
const adminLinks = getAdminLinks(workspace);
48-
const adminLink = (i: number) => (
49-
<Property key={"admin-" + i} name={adminLinks[i]?.name || ""}>
50-
<a
51-
className="text-blue-400 dark:text-blue-600 hover:text-blue-600 dark:hover:text-blue-400"
52-
href={adminLinks[i]?.url}
53-
>
54-
{adminLinks[i]?.title || ""}
55-
</a>
56-
</Property>
57-
);
5846
return (
5947
<>
6048
<div className="app-container">
@@ -154,8 +142,6 @@ export default function WorkspaceDetail(props: { workspace: WorkspaceAndInstance
154142
<div>{workspace.workspaceClass ?? "unknown"}</div>
155143
</Property>
156144
</div>
157-
<div className="flex w-full mt-6">{[0, 1, 2].map(adminLink)}</div>
158-
<div className="flex w-full mt-6">{[3, 4, 5].map(adminLink)}</div>
159145
</div>
160146
</div>
161147
</div>

components/dashboard/src/admin/gcp-info.ts

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)