RemoteStatusLight no longer used. It's replaced by Status component.

This commit is contained in:
Red Adaya 2024-02-06 13:27:58 +08:00
parent 434f980b49
commit c9a73c2204
2 changed files with 0 additions and 1182 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,29 +0,0 @@
import * as React from "react";
import * as mobxReact from "mobx-react";
import { RemoteType } from "../../../types/types";
import { ReactComponent as CircleIcon } from "../../assets/icons/circle.svg";
import { ReactComponent as KeyIcon } from "../../assets/icons/key.svg";
import { ReactComponent as RotateIcon } from "../../assets/icons/rotate_left.svg";
import "./remotestatuslight.less";
@mobxReact.observer
class RemoteStatusLight extends React.Component<{ remote: RemoteType }, {}> {
render() {
let remote = this.props.remote;
let status = "error";
let wfp = false;
if (remote != null) {
status = remote.status;
wfp = remote.waitingforpassword;
}
if (status == "connecting") {
if (wfp) return <KeyIcon className={`remote-status status-${status}`} />;
else return <RotateIcon className={`remote-status status-${status}`} />;
}
return <CircleIcon className={`remote-status status-${status}`} />;
}
}
export { RemoteStatusLight };