diff --git a/src/classes/User.js b/src/classes/User.js new file mode 100644 index 0000000..0aef9aa --- /dev/null +++ b/src/classes/User.js @@ -0,0 +1,17 @@ +/* + Denna klass är en modell för användare. + + name : String (Användarnamn) + deviceId : Int (Enhetens ID) + location : Coordinates (Användarens koordinater) +*/ + +class User { + constructor(name, deviceId, location) { + this.name = name; + this.deviceId = deviceId; + this.location = location; + } +} + +export default User; \ No newline at end of file diff --git a/src/components/NavigationDrawer.js b/src/components/NavigationDrawer.js index 1b963b0..c029b55 100644 --- a/src/components/NavigationDrawer.js +++ b/src/components/NavigationDrawer.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import './css/NavigationDrawer.css'; +import globalData from '../GlobalData.js'; import DisruptionButton from "./DisruptionButton.js"; import userIcon from '../img/user.svg'; @@ -36,7 +37,7 @@ class NavigationDrawer extends Component {