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.
26 lines
777 B
26 lines
777 B
7 years ago
|
import { observer } from "mobx-react";
|
||
8 years ago
|
import DevTools from "mobx-react-devtools";
|
||
|
import * as React from "react";
|
||
7 years ago
|
import { Item } from "semantic-ui-react";
|
||
7 years ago
|
|
||
7 years ago
|
import { UiStore } from "@app/ui";
|
||
|
import { SprinklersDevice } from "@common/sprinklers";
|
||
7 years ago
|
import { DeviceView, MessagesView } from ".";
|
||
|
|
||
7 years ago
|
import "@app/styles/app.css";
|
||
7 years ago
|
import "font-awesome/css/font-awesome.css";
|
||
8 years ago
|
import "semantic-ui-css/semantic.css";
|
||
|
|
||
|
@observer
|
||
7 years ago
|
export default class App extends React.Component<{ device: SprinklersDevice, uiStore: UiStore }> {
|
||
8 years ago
|
render() {
|
||
7 years ago
|
return (
|
||
|
<Item.Group divided>
|
||
|
<MessagesView uiStore={this.props.uiStore} />
|
||
|
<DeviceView device={this.props.device} />
|
||
|
<DevTools />
|
||
|
</Item.Group>
|
||
|
);
|
||
8 years ago
|
}
|
||
|
}
|