|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
import React from "react"; |
|
|
|
|
import { connect } from "react-redux"; |
|
|
|
|
import Avatar from "../../../../components/Avatar"; |
|
|
|
|
|
|
|
|
|
const User = ({ user, mobile }) => { |
|
|
|
|
const [dropdown, setDropdown] = React.useState(true); |
|
|
|
@ -17,18 +18,14 @@ const User = ({ user, mobile }) => { |
|
|
|
|
style={{ width: 70, height: 70 }} |
|
|
|
|
/> |
|
|
|
|
) : ( |
|
|
|
|
<div |
|
|
|
|
className={"rounded-full"} |
|
|
|
|
style={{ |
|
|
|
|
width: 70, |
|
|
|
|
height: 70, |
|
|
|
|
backgroundColor: "#ddd", |
|
|
|
|
}} |
|
|
|
|
></div> |
|
|
|
|
<Avatar size={60} rounded={true} /> |
|
|
|
|
)} |
|
|
|
|
<div className={`flex flex-col mr-1`}> |
|
|
|
|
<strong className={`text-base font-semibold text-gray1`}> |
|
|
|
|
{user?.firstName + " " + user?.lastName} |
|
|
|
|
{/* {user?.firstName + " " + user?.lastName} */} |
|
|
|
|
{user.firstName === null |
|
|
|
|
? "" |
|
|
|
|
: user.firstName + " " + user.lastName} |
|
|
|
|
</strong> |
|
|
|
|
<span className="mt-2 text-sm text-gray1">{user?.cellphone}</span> |
|
|
|
|
</div> |
|
|
|
@ -70,3 +67,14 @@ const mapStateToProps = (state) => ({ |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
export default connect(mapStateToProps)(User); |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
/* <div |
|
|
|
|
className={"rounded-full"} |
|
|
|
|
style={{ |
|
|
|
|
width: 70, |
|
|
|
|
height: 70, |
|
|
|
|
backgroundColor: "red", |
|
|
|
|
}} |
|
|
|
|
></div> */ |
|
|
|
|
} |
|
|
|
|