diff --git a/interface/.env b/interface/.env new file mode 100644 index 0000000..54f3b9d --- /dev/null +++ b/interface/.env @@ -0,0 +1 @@ +REACT_APP_NAME=ESP8266 React diff --git a/interface/src/components/MenuAppBar.js b/interface/src/components/MenuAppBar.js index 82777b9..697d7c3 100644 --- a/interface/src/components/MenuAppBar.js +++ b/interface/src/components/MenuAppBar.js @@ -22,6 +22,8 @@ import SystemUpdateIcon from '@material-ui/icons/SystemUpdate'; import AccessTimeIcon from '@material-ui/icons/AccessTime'; import SettingsInputAntennaIcon from '@material-ui/icons/SettingsInputAntenna'; +import { APP_NAME } from '../constants/App'; + const drawerWidth = 290; const styles = theme => ({ @@ -97,7 +99,7 @@ class MenuAppBar extends React.Component {
- ESP8266 React + {APP_NAME} diff --git a/interface/src/index.js b/interface/src/index.js index 5e3b43f..a0801fc 100644 --- a/interface/src/index.js +++ b/interface/src/index.js @@ -2,15 +2,12 @@ import React from 'react'; import { render } from 'react-dom'; import history from './history'; -import { Router, Route, Redirect, Switch } from 'react-router'; +import { Router } from 'react-router'; import App from './App'; render(( - - - - + ), document.getElementById("root"))