Skip to content

Commit a2e175b

Browse files
committed
eliminate react-bootstrap in file use dialog
1 parent 9d32c83 commit a2e175b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/packages/frontend/file-use/info.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
*/
55

66
import { Component, Rendered, CSS } from "../app-framework";
7-
const { User } = require("../users");
7+
import { User } from "@cocalc/frontend/users";
88
import { Icon, TimeAgo, r_join } from "../components";
99
import { FileUseIcon } from "./icon";
1010
import { Map as iMap } from "immutable";
11-
const { Col, Grid, Row } = require("react-bootstrap");
11+
import { Col, Grid, Row } from "@cocalc/frontend/antd-bootstrap";
1212
import * as misc from "@cocalc/util/misc";
1313
import { open_file_use_entry } from "./util";
1414
import { ProjectTitle } from "@cocalc/frontend/projects/project-title";
@@ -55,7 +55,7 @@ export class FileUseInfo extends Component<Props, {}> {
5555
name={user.account_id === this.props.account_id ? "You" : undefined}
5656
user_map={this.props.user_map}
5757
last_active={user.last_edited ? user.last_edited : user.last_used}
58-
/>
58+
/>,
5959
);
6060
}
6161
if (v.length == 0) {
@@ -83,13 +83,13 @@ export class FileUseInfo extends Component<Props, {}> {
8383
x.get("project_id"),
8484
x.get("path"),
8585
x.get("show_chat", false),
86-
this.props.redux
86+
this.props.redux,
8787
);
8888
}
8989

9090
render_path(): Rendered {
9191
let { name, ext } = misc.separate_file_extension(
92-
this.props.info.get("path")
92+
this.props.info.get("path"),
9393
);
9494
name = misc.trunc_middle(name, TRUNCATE_LENGTH);
9595
ext = misc.trunc_middle(ext, TRUNCATE_LENGTH);
@@ -154,7 +154,7 @@ export class FileUseInfo extends Component<Props, {}> {
154154
misc.merge(style, { background: "#08c", color: "white" });
155155
}
156156
return (
157-
<Grid style={style} onClick={(e) => this.open(e)} fluid={true}>
157+
<Grid style={style} onClick={(e) => this.open(e)}>
158158
<Row style={{ padding: "5px" }}>
159159
<Col key="action" sm={1} style={{ fontSize: "14pt" }}>
160160
{this.render_action_icon()}

0 commit comments

Comments
 (0)