Skip to content

Commit 86e401d

Browse files
authored
chore: remove kirby button (#19501)
1 parent fe8ca2a commit 86e401d

File tree

3 files changed

+12
-39
lines changed

3 files changed

+12
-39
lines changed

site/src/api/queries/workspaces.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { DetailedError, isApiValidationError } from "api/errors";
33
import type {
44
CreateWorkspaceRequest,
55
ProvisionerLogLevel,
6-
UpdateWorkspaceACL,
76
UsageAppName,
87
Workspace,
98
WorkspaceAgentLog,
@@ -422,14 +421,6 @@ export const workspacePermissions = (workspace?: Workspace) => {
422421
};
423422
};
424423

425-
export const updateWorkspaceACL = (workspaceId: string) => {
426-
return {
427-
mutationFn: async (patch: UpdateWorkspaceACL) => {
428-
await API.updateWorkspaceACL(workspaceId, patch);
429-
},
430-
};
431-
};
432-
433424
export const workspaceAgentCredentials = (
434425
workspaceId: string,
435426
agentName: string,

site/src/pages/TemplateSettingsPage/TemplatePermissionsPage/TemplatePermissionsPageView.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export const TemplatePermissionsPageView: FC<
210210

211211
return (
212212
<>
213-
<PageHeader css={styles.pageHeader}>
213+
<PageHeader className="pt-0">
214214
<PageHeaderTitle>Permissions</PageHeaderTitle>
215215
</PageHeader>
216216

@@ -419,8 +419,4 @@ const styles = {
419419
fontSize: 14,
420420
color: theme.palette.text.secondary,
421421
}),
422-
423-
pageHeader: {
424-
paddingTop: 0,
425-
},
426422
} satisfies Record<string, Interpolation<Theme>>;

site/src/pages/WorkspaceSettingsPage/WorkspaceSharingPage/WorkspaceSharingPage.tsx

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,21 @@
1-
import { updateWorkspaceACL } from "api/queries/workspaces";
2-
import { Button } from "components/Button/Button";
3-
import { ExternalImage } from "components/ExternalImage/ExternalImage";
1+
import { PageHeader, PageHeaderTitle } from "components/PageHeader/PageHeader";
42
import type { FC } from "react";
5-
import { useMutation } from "react-query";
3+
import { Helmet } from "react-helmet-async";
4+
import { pageTitle } from "utils/page";
65
import { useWorkspaceSettings } from "../WorkspaceSettingsLayout";
76

8-
const localKirbyId = "1ce34e51-3135-4720-8bfc-eabce178eafb";
9-
const devKirbyId = "7a4319a5-0dc1-41e1-95e4-f31e312b0ecc";
10-
117
const WorkspaceSharingPage: FC = () => {
128
const workspace = useWorkspaceSettings();
13-
const shareWithKirbyMutation = useMutation(updateWorkspaceACL(workspace.id));
14-
15-
const onClick = () => {
16-
shareWithKirbyMutation.mutate({
17-
user_roles: {
18-
[localKirbyId]: "admin",
19-
[devKirbyId]: "admin",
20-
},
21-
});
22-
};
239

2410
return (
25-
<Button
26-
onClick={onClick}
27-
className=" bg-white hover:bg-pink-300 text-pink-800 hover:text-pink-950"
28-
size="lg"
29-
>
30-
<ExternalImage src="/kirby.gif" />
31-
Share with Kirby
32-
</Button>
11+
<>
12+
<Helmet>
13+
<title>{pageTitle(workspace.name, "Sharing")}</title>
14+
</Helmet>
15+
<PageHeader className="pt-0">
16+
<PageHeaderTitle>Sharing</PageHeaderTitle>
17+
</PageHeader>
18+
</>
3319
);
3420
};
3521

0 commit comments

Comments
 (0)