You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { observer } from "mobx-react";
|
|
|
|
import * as React from "react";
|
|
|
|
import { Item } from "semantic-ui-react";
|
|
|
|
|
|
|
|
import DeviceView from "@client/components/DeviceView";
|
|
|
|
import { RouteComponentProps, withRouter } from "react-router";
|
|
|
|
|
|
|
|
class DevicePage extends React.Component<RouteComponentProps<{ deviceId: string }>> {
|
|
|
|
render() {
|
|
|
|
const { match: { params: { deviceId } } } = this.props;
|
|
|
|
const devId = Number(deviceId);
|
|
|
|
return (
|
|
|
|
<Item.Group divided>
|
|
|
|
<DeviceView deviceId={devId} inList={false} />
|
|
|
|
</Item.Group>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default withRouter(observer(DevicePage));
|