Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b968bd1

Browse files
[dashboard] remove CheckBox on team settings
1 parent ec15328 commit b968bd1

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

‎components/dashboard/src/teams/TeamSettings.tsx‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { OrganizationSettings } from "@gitpod/gitpod-protocol";
88
import React, { useCallback, useState } from "react";
99
import Alert from "../components/Alert";
1010
import { Button } from "../components/Button";
11-
import CheckBoxfrom "../components/CheckBox";
11+
import {CheckboxInputContainer,CheckboxInput}from "../components/forms/CheckboxInputField";
1212
import ConfirmationModal from "../components/ConfirmationModal";
1313
import { TextInputField } from "../components/forms/TextInputField";
1414
import { Heading2, Subheading } from "../components/typography/headings";
@@ -146,19 +146,16 @@ export default function TeamSettingsPage() {
146146
</Button>
147147

148148
<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>
162159
</form>
163160

164161
<Heading2 className="pt-12">Delete Organization</Heading2>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /