// - Import react components
import React, { Component } from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import RaisedButton from 'material-ui/RaisedButton'
// - Import app components
import ProfileHead from 'ProfileHead'
import Blog from 'Blog'
// - Import API
// - Import actions
import * as postActions from 'postActions'
import * as userActions from 'userActions'
import * as globalActions from 'globalActions'
/**
* Create component class
*/
export class Profile extends Component {
static propTypes = {
}
/**
* Component constructor
* @param {object} props is an object properties of component
*/
constructor(props) {
super(props)
//Defaul state
this.state = {
}
// Binding functions to `this`
}
componentWillMount() {
this.props.loadPosts()
this.props.loadUserInfo()
}
/**
* Reneder component DOM
* @return {react element} return the DOM which rendered by component
*/
render() {
/**
* Component styles
*/
const styles = {
profile: {
margin: '0 auto',
width: '90%'
},
header: {
},
content: {
},
showcover: {
height: '450px'
},
avatar: {
border: '2px solid rgb(255, 255, 255)'
}
}
/**
* Actions for material ui dialog
*/
const actions = [