diff --git a/src/App.js b/src/App.js index 019a35a..f8ffe1e 100644 --- a/src/App.js +++ b/src/App.js @@ -6,15 +6,20 @@ import AppBar from '@material-ui/core/AppBar'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; + + import { UserPanel, Login } from './userPanel.js'; import { Transactions } from './Transactions.js'; import Contacts from './Contacts.js'; import Supervisors from './Supervisors.js'; +import Notes from './Notes.js'; + const menu = { // index of menu items TRANSACTIONS: 0, CONTACTS: 1, SUPERVISORS: 2, + NOTES: 3, } class App extends React.Component { @@ -37,8 +42,8 @@ class App extends React.Component { componentDidMount() { // const onValueChanged = this.onValueChanged; - let request= new XMLHttpRequest(); - request.onreadystatechange = function() { + let request = new XMLHttpRequest(); + request.onreadystatechange = function () { if (this.readyState === 4 && this.status === 200) { console.log("RETURNED:", this.responseText); // const supervisors = JSON.parse(this.responseText); @@ -51,37 +56,43 @@ class App extends React.Component { } render() { - const { loggedUser, page} = this.state; + const { loggedUser, page } = this.state; console.log(this.state); + //console.log("habadub"); return (
| + | |
|---|---|
| CreateDate: {note.createDate} | +Note: {note.note} | + +