import React from 'react';
import {Link} from 'react-router'
import auth from '../../utils/auth.jsx'

export default class RegisteredUserHome extends React.Component {
	// componentWillMount() {
	// 	auth.getUser(localStorage.id).then((res) => {
	// 		this.user = res.data.user
	// 	})
	// }
	render(){
		return(
			<div className="starter-template">
				<h1>Welcome Back, {this.props.user.first_name}</h1>
		        <p className="lead">Get something done today.</p>
		        <Link to="/task/new" className="btn btn-primary">Create A Task</Link>
	        </div>
		)
	}
}
import React from 'react';
import {Link} from 'react-router'
import auth from '../../utils/auth.jsx'

export default class RegisteredUserHome extends React.Component {

	render(){
		return(
			<div className="starter-template">
				<h1>Welcome Back, {this.props.user.first_name}</h1>
		        <p className="lead">Get something done today.</p>
		        <Link to={"/users/" + this.props.user.id + "/tasks/new"} className="btn btn-primary">Create A Task</Link>
	        </div>
		)
	}
}
Add link to new task
Add link to new task
