import React from 'react';
import {Link} from 'react-router-dom';
import LoginFormContainer from './login_form_container';
import SearchContainer from './search_container';
import ApproveFriendIndexContainer
from '../friend_request/approve_friend_index_container';
class Greeting extends React.Component {
constructor(props){
super(props);
}
componentDidMount(){
this.props.fetchAllUsers();
}
render(){
const {currentUser, logout} = this.props;
if (currentUser){
return (
C
-
{currentUser.fname}
- |
- Home
- |
-
-
-
- |
-
-
) ;
}else{
return (
);
}
}
}
export default Greeting;