|
4 | 4 | */
|
5 | 5 |
|
6 | 6 | import { Component, Rendered, CSS } from "../app-framework";
|
7 |
| -const { User } = require("../users"); |
| 7 | +import { User } from "@cocalc/frontend/users"; |
8 | 8 | import { Icon, TimeAgo, r_join } from "../components";
|
9 | 9 | import { FileUseIcon } from "./icon";
|
10 | 10 | import { Map as iMap } from "immutable";
|
11 |
| -const { Col, Grid, Row } = require("react-bootstrap"); |
| 11 | +import { Col, Grid, Row } from "@cocalc/frontend/antd-bootstrap"; |
12 | 12 | import * as misc from "@cocalc/util/misc";
|
13 | 13 | import { open_file_use_entry } from "./util";
|
14 | 14 | import { ProjectTitle } from "@cocalc/frontend/projects/project-title";
|
@@ -55,7 +55,7 @@ export class FileUseInfo extends Component<Props, {}> {
|
55 | 55 | name={user.account_id === this.props.account_id ? "You" : undefined}
|
56 | 56 | user_map={this.props.user_map}
|
57 | 57 | last_active={user.last_edited ? user.last_edited : user.last_used}
|
58 |
| - /> |
| 58 | + />, |
59 | 59 | );
|
60 | 60 | }
|
61 | 61 | if (v.length == 0) {
|
@@ -83,13 +83,13 @@ export class FileUseInfo extends Component<Props, {}> {
|
83 | 83 | x.get("project_id"),
|
84 | 84 | x.get("path"),
|
85 | 85 | x.get("show_chat", false),
|
86 |
| - this.props.redux |
| 86 | + this.props.redux, |
87 | 87 | );
|
88 | 88 | }
|
89 | 89 |
|
90 | 90 | render_path(): Rendered {
|
91 | 91 | let { name, ext } = misc.separate_file_extension(
|
92 |
| - this.props.info.get("path") |
| 92 | + this.props.info.get("path"), |
93 | 93 | );
|
94 | 94 | name = misc.trunc_middle(name, TRUNCATE_LENGTH);
|
95 | 95 | ext = misc.trunc_middle(ext, TRUNCATE_LENGTH);
|
@@ -154,7 +154,7 @@ export class FileUseInfo extends Component<Props, {}> {
|
154 | 154 | misc.merge(style, { background: "#08c", color: "white" });
|
155 | 155 | }
|
156 | 156 | return (
|
157 |
| - <Grid style={style} onClick={(e) => this.open(e)} fluid={true}> |
| 157 | + <Grid style={style} onClick={(e) => this.open(e)}> |
158 | 158 | <Row style={{ padding: "5px" }}>
|
159 | 159 | <Col key="action" sm={1} style={{ fontSize: "14pt" }}>
|
160 | 160 | {this.render_action_icon()}
|
|
0 commit comments