From ee2dbe0f7b01bb52822dcf5b775c61db5f09faef Mon Sep 17 00:00:00 2001 From: uwap Date: Sat, 10 Nov 2018 04:52:44 +0100 Subject: [PATCH] Add Github and Feedback link --- src/components/App.js | 3 +-- src/components/TopBar.js | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/components/App.js b/src/components/App.js index 4adddcf..99b47f8 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -147,8 +147,7 @@ class App extends React.PureComponent { state: this.state.mqttState, changeState: this.changeState }}> - this.setState({ search: s })} /> void }; @@ -85,13 +85,27 @@ const RawSearch = (props: SearchBarProps & Classes) => ( const Search = withStyles(searchStyles)(RawSearch); +const openOnGithub = () => window.open( + "https://github.com/uwap/mqtt-control-map", "_blank"); + +const sendFeedback = () => window.open("mailto:mail+feedback@uwap.name"); + const TopBar = (props: TopBarProps) => ( {renderConnectionIndicator(props.connected)} - {props.title} + + + + + + + + + + );