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