|
|
|
@ -2,7 +2,7 @@ import * as classNames from "classnames";
@@ -2,7 +2,7 @@ import * as classNames from "classnames";
|
|
|
|
|
import { observer } from "mobx-react"; |
|
|
|
|
import * as React from "react"; |
|
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
|
import { Grid, Header, Icon, Item, SemanticICONS, Dimmer, Segment } from "semantic-ui-react"; |
|
|
|
|
import { Dimmer, Grid, Header, Icon, Item, SemanticICONS } from "semantic-ui-react"; |
|
|
|
|
|
|
|
|
|
import { DeviceImage } from "@client/components"; |
|
|
|
|
import * as p from "@client/pages"; |
|
|
|
@ -62,7 +62,7 @@ const ConnectionState = observer(
@@ -62,7 +62,7 @@ const ConnectionState = observer(
|
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
interface DeviceViewProps { |
|
|
|
|
interface DeviceViewProps extends RouteComponentProps { |
|
|
|
|
deviceId: number; |
|
|
|
|
appState: AppState; |
|
|
|
|
inList?: boolean; |
|
|
|
@ -189,4 +189,4 @@ class DeviceView extends React.Component<DeviceViewProps> {
@@ -189,4 +189,4 @@ class DeviceView extends React.Component<DeviceViewProps> {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export default injectState(observer(DeviceView)); |
|
|
|
|
export default withRouter(injectState(observer(DeviceView))); |
|
|
|
|