@@ -8,7 +8,7 @@ import { OrganizationSettings } from "@gitpod/gitpod-protocol";
8
8
import React , { useCallback , useState } from "react" ;
9
9
import Alert from "../components/Alert" ;
10
10
import { Button } from "../components/Button" ;
11
- import CheckBox from "../components/CheckBox " ;
11
+ import { CheckboxInputContainer , CheckboxInput } from "../components/forms/CheckboxInputField " ;
12
12
import ConfirmationModal from "../components/ConfirmationModal" ;
13
13
import { TextInputField } from "../components/forms/TextInputField" ;
14
14
import { Heading2 , Subheading } from "../components/typography/headings" ;
@@ -146,19 +146,16 @@ export default function TeamSettingsPage() {
146
146
</ Button >
147
147
148
148
< Heading2 className = "pt-12" > Collaboration & Sharing </ Heading2 >
149
- < CheckBox
150
- title = { < span > Workspace Sharing</ span > }
151
- desc = {
152
- < span >
153
- Allow workspaces creаted within an Organization to share the workspace with any authenticated user.
154
- </ span >
155
- }
156
- checked = { ! settings ?. workspaceSharingDisabled }
157
- onChange = { ( { target } ) =>
158
- handleUpdateTeamSettings ( { workspaceSharingDisabled : ! target . checked } )
159
- }
160
- disabled = { isLoading }
161
- />
149
+ < CheckboxInputContainer >
150
+ < CheckboxInput
151
+ value = "allow workspace sharing"
152
+ label = "Workspace Sharing"
153
+ hint = "Allow workspaces created within an Organization to share the workspace with any authenticated user."
154
+ checked = { ! settings ?. workspaceSharingDisabled }
155
+ onChange = { ( checked ) => handleUpdateTeamSettings ( { workspaceSharingDisabled : ! checked } ) }
156
+ disabled = { isLoading }
157
+ />
158
+ </ CheckboxInputContainer >
162
159
</ form >
163
160
164
161
< Heading2 className = "pt-12" > Delete Organization</ Heading2 >
0 commit comments