Skip to content

Commit f95473c

Browse files
committed
eliminate all use of ControlLabel
1 parent 9888aed commit f95473c

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

src/packages/frontend/custom-software/selector.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { Alert, Button, Divider, Radio } from "antd";
77
import { join } from "path";
88
import {
99
Col,
10-
ControlLabel,
11-
FormGroup,
1210
ListGroup,
1311
ListGroupItem,
1412
Row,
@@ -518,16 +516,14 @@ export const SoftwareEnvironment: React.FC<Props> = (props: Props) => {
518516
function render_type_selection() {
519517
return (
520518
<>
521-
{showTitle ? (
522-
<ControlLabel>Software environment</ControlLabel>
523-
) : undefined}
519+
{showTitle ? <div>Software environment</div> : undefined}
524520

525521
{onCoCalcCom ? (
526-
<FormGroup>
522+
<div>
527523
<div style={{ marginBottom: "5px" }}>{render_default()}</div>
528524
<div style={{ marginBottom: "5px" }}>{render_standard()}</div>
529525
<div style={{ marginBottom: "5px" }}>{render_custom()}</div>
530-
</FormGroup>
526+
</div>
531527
) : (
532528
render_onprem()
533529
)}

src/packages/frontend/project/ask-filename.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import {
77
Button,
88
ButtonToolbar,
99
Col,
10-
ControlLabel,
1110
Form,
1211
Row,
1312
} from "@cocalc/frontend/antd-bootstrap";
1413
import { useEffect } from "react";
15-
1614
import { useActions, useTypedRedux } from "@cocalc/frontend/app-framework";
1715
import {
1816
Icon,
@@ -108,7 +106,7 @@ export default function AskNewFilename({ project_id }: Props) {
108106
background: "#f8f8f8",
109107
}}
110108
>
111-
<ControlLabel>
109+
<div>
112110
Enter name for new {filename()}{" "}
113111
{ext_selection == "/" ? "folder" : "file"}
114112
{!!compute_server_id && (
@@ -117,7 +115,7 @@ export default function AskNewFilename({ project_id }: Props) {
117115
<ComputeServer id={compute_server_id} />
118116
</>
119117
)}
120-
</ControlLabel>
118+
</div>
121119
<Form style={{ marginTop: "5px" }}>
122120
<SearchInput
123121
autoFocus={!IS_TOUCH}

0 commit comments

Comments
 (0)