File tree Expand file tree Collapse file tree 2 files changed +12
-30
lines changed
TemplateSettingsPage/TemplatePermissionsPage
WorkspaceSettingsPage/WorkspaceSharingPage Expand file tree Collapse file tree 2 files changed +12
-30
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export const TemplatePermissionsPageView: FC<
210
210
211
211
return (
212
212
< >
213
- < PageHeader css = { styles . pageHeader } >
213
+ < PageHeader className = "pt-0" >
214
214
< PageHeaderTitle > Permissions</ PageHeaderTitle >
215
215
</ PageHeader >
216
216
@@ -419,8 +419,4 @@ const styles = {
419
419
fontSize : 14 ,
420
420
color : theme . palette . text . secondary ,
421
421
} ) ,
422
-
423
- pageHeader : {
424
- paddingTop : 0 ,
425
- } ,
426
422
} satisfies Record < string , Interpolation < Theme > > ;
Original file line number Diff line number Diff line change 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" ;
4
2
import type { FC } from "react" ;
5
- import { useMutation } from "react-query" ;
3
+ import { Helmet } from "react-helmet-async" ;
4
+ import { pageTitle } from "utils/page" ;
6
5
import { useWorkspaceSettings } from "../WorkspaceSettingsLayout" ;
7
6
8
- const localKirbyId = "1ce34e51-3135-4720-8bfc-eabce178eafb" ;
9
- const devKirbyId = "7a4319a5-0dc1-41e1-95e4-f31e312b0ecc" ;
10
-
11
7
const WorkspaceSharingPage : FC = ( ) => {
12
8
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
- } ;
23
9
24
10
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
+ </ >
33
19
) ;
34
20
} ;
35
21
You can’t perform that action at this time.
0 commit comments