import React from 'react'; import Button from './Button'; import {storeUser} from '../../actions/authActions' import store from '../../store' import userManager from '../../services/userService' const LoginWindow = () => { const onUserLogin = () => { const user = {profile: {given_name: 'John Doe'}} console.log(`User logged in!`) store.dispatch(storeUser(user)) // Looks like we don't have this function even tho it's in the library installed // userManager.storeUser(user).then(()=> console.log('yay')).catch(()=> console.log('nope')) } return (
Login to your account to view your dashboard and register a new vehicle.