Skip to content

Commit 61d51b3

Browse files
committed
removing some use of react-bootstrap; deleting some landing page components that are no longer used
1 parent 5fb4f5c commit 61d51b3

File tree

3 files changed

+12
-322
lines changed

3 files changed

+12
-322
lines changed

src/packages/frontend/jupyter/cell-toolbar-slideshow.tsx

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
/*
77
The slideshow toolbar functionality for cells.
88
*/
9-
9+
import { Select } from "antd";
1010
import { Map as ImmutableMap } from "immutable";
11-
12-
import { FormControl } from "@cocalc/frontend/antd-bootstrap";
13-
import { React } from "@cocalc/frontend/app-framework";
1411
import { JupyterActions } from "./browser-actions";
1512

1613
const TYPES = [
@@ -22,33 +19,25 @@ const TYPES = [
2219
{ title: "Notes", value: "notes" },
2320
] as const;
2421

25-
const rendered_options = TYPES.map((x) => (
26-
<option key={x.value} value={x.value}>
27-
{x.title}
28-
</option>
29-
));
30-
3122
interface SlideshowProps {
3223
actions: JupyterActions;
3324
cell: ImmutableMap<string, any>;
3425
}
3526

36-
export const Slideshow: React.FC<SlideshowProps> = (props: SlideshowProps) => {
37-
const { actions, cell } = props;
38-
function select(e: any): void {
39-
actions.set_cell_slide(cell.get("id"), e.target.value);
40-
}
27+
export function Slideshow({ actions, cell }: SlideshowProps) {
4128
return (
4229
<div style={{ width: "100%" }}>
43-
<FormControl
44-
componentClass="select"
45-
placeholder="select"
46-
onChange={select}
30+
<Select
31+
onChange={(value) => {
32+
actions.set_cell_slide(cell.get("id"), value);
33+
}}
4734
value={cell.get("slide", "")}
4835
style={{ float: "right", width: "200px" }}
49-
>
50-
{rendered_options}
51-
</FormControl>
36+
options={TYPES.map((x) => ({
37+
label: x.title,
38+
value: x.value,
39+
}))}
40+
/>
5241
</div>
5342
);
54-
};
43+
}

src/packages/frontend/landing-page/reset-password.tsx

Lines changed: 0 additions & 125 deletions
This file was deleted.

src/packages/frontend/landing-page/sign-in.tsx

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)