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.
20 lines
596 B
20 lines
596 B
7 years ago
|
import { observer } from "mobx-react";
|
||
|
import * as React from "react";
|
||
7 years ago
|
import { Item } from "semantic-ui-react";
|
||
7 years ago
|
|
||
7 years ago
|
import DeviceView from "@client/components/DeviceView";
|
||
7 years ago
|
import { RouteComponentProps, withRouter } from "react-router";
|
||
7 years ago
|
|
||
7 years ago
|
class DevicePage extends React.Component<RouteComponentProps<{ deviceId: string }>> {
|
||
7 years ago
|
render() {
|
||
7 years ago
|
const { match: { params: { deviceId } } } = this.props;
|
||
7 years ago
|
return (
|
||
|
<Item.Group divided>
|
||
7 years ago
|
<DeviceView deviceId={deviceId} />
|
||
7 years ago
|
</Item.Group>
|
||
|
);
|
||
7 years ago
|
}
|
||
|
}
|
||
|
|
||
7 years ago
|
export default withRouter(observer(DevicePage));
|