Skip to content

Commit e29f490

Browse files
feat(FR-1662): use checkbox for openToPublic option in model service form (#4606)
Co-authored-by: Seungwon Lee <[email protected]>
1 parent 971d534 commit e29f490

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

react/src/components/ServiceLauncherPageContent.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ import {
4040
App,
4141
Button,
4242
Card,
43+
Checkbox,
4344
Form,
4445
Input,
4546
Skeleton,
4647
Select,
47-
Switch,
4848
theme,
4949
Tooltip,
5050
Tag,
@@ -779,12 +779,8 @@ const ServiceLauncherPageContent: React.FC<ServiceLauncherPageContentProps> = ({
779779
>
780780
<Input disabled={!!endpoint} />
781781
</Form.Item>
782-
<Form.Item
783-
name="openToPublic"
784-
label={t('modelService.OpenToPublic')}
785-
valuePropName="checked"
786-
>
787-
<Switch disabled={!!endpoint}></Switch>
782+
<Form.Item name="openToPublic" valuePropName="checked">
783+
<Checkbox disabled={!!endpoint}>{t('modelService.OpenToPublic')}</Checkbox>
788784
</Form.Item>
789785
{!endpoint ? (
790786
<Form.Item

0 commit comments

Comments
 (0)