sprinklers3/app/components/DevicesView.tsx

19 lines
546 B
TypeScript
Raw Normal View History

2017-09-10 12:30:23 -06:00
import { observer } from "mobx-react";
import * as React from "react";
2017-09-10 20:28:23 -06:00
import { Item } from "semantic-ui-react";
2017-09-10 12:30:23 -06:00
import DeviceView from "@app/components/DeviceView";
import { RouteComponentProps, withRouter } from "react-router";
2017-09-10 12:30:23 -06:00
class DevicesView extends React.Component<{deviceId: string} & RouteComponentProps<any>> {
2017-09-10 12:30:23 -06:00
render() {
2017-09-10 20:28:23 -06:00
return (
<Item.Group divided>
<DeviceView deviceId={this.props.deviceId} />
2017-09-10 20:28:23 -06:00
</Item.Group>
);
2017-09-10 12:30:23 -06:00
}
}
export default withRouter(observer(DevicesView));