File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ const InstallGitHubApp = React.lazy(() => import(/* webpackPrefetch: true */ './
49
49
const FromReferrer = React . lazy ( ( ) => import ( /* webpackPrefetch: true */ './FromReferrer' ) ) ;
50
50
const UserSearch = React . lazy ( ( ) => import ( /* webpackPrefetch: true */ './admin/UserSearch' ) ) ;
51
51
const WorkspacesSearch = React . lazy ( ( ) => import ( /* webpackPrefetch: true */ './admin/WorkspacesSearch' ) ) ;
52
+ const AdminSettings = React . lazy ( ( ) => import ( /* webpackPrefetch: true */ './admin/Settings' ) ) ;
52
53
const OAuthClientApproval = React . lazy ( ( ) => import ( /* webpackPrefetch: true */ './OauthClientApproval' ) ) ;
53
54
54
55
function Loading ( ) {
@@ -276,6 +277,7 @@ function App() {
276
277
277
278
< Route path = "/admin/users" component = { UserSearch } />
278
279
< Route path = "/admin/workspaces" component = { WorkspacesSearch } />
280
+ < Route path = "/admin/settings" component = { AdminSettings } />
279
281
280
282
< Route path = { [ "/" , "/login" ] } exact >
281
283
< Redirect to = "/workspaces" />
Original file line number Diff line number Diff line change
1
+ import { useContext } from "react" ;
2
+ import CheckBox from "../components/CheckBox" ;
3
+ import { PageWithSubMenu } from "../components/PageWithSubMenu" ;
4
+ import { UserContext } from "../user-context" ;
5
+ import { adminMenu } from "./admin-menu" ;
6
+
7
+ export default function Settings ( ) {
8
+ const { user } = useContext ( UserContext ) ;
9
+
10
+ console . log ( { user } )
11
+
12
+ return (
13
+ < div >
14
+ < PageWithSubMenu subMenu = { adminMenu } title = "Settings" subtitle = "Configure settings for your Gitpod cluster." >
15
+ < CheckBox
16
+ title = "Send anonymous telemetry to Gitpod"
17
+ desc = "This telemetry is used to provide insights on how you use your cluster so we can provide a better overall experience"
18
+ checked = { true } />
19
+ </ PageWithSubMenu >
20
+ </ div >
21
+ )
22
+ }
Original file line number Diff line number Diff line change @@ -10,4 +10,7 @@ export const adminMenu = [{
10
10
} , {
11
11
title : 'Workspaces' ,
12
12
link : [ '/admin/workspaces' ]
13
+ } , {
14
+ title : 'Settings' ,
15
+ link : [ '/admin/settings' ]
13
16
} , ] ;
You can’t perform that action at this time.
0 commit comments