Rev 5992 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React, { useEffect, useState } from 'react'import SocialNetworks from './SocialNetworks';const ProfileInfo = ({companyId,socialNetworksUrl,followers,image,imageUploadUrl}) => {const [isShowModal, setIsShowModal] = useState(false);const [companyImg, setCompanyImg] = useState(`/storage/type/company/code/${companyId}/filename/${image}`);const closeModal = () => setIsShowModal(false)const showModal = () => setIsShowModal(true)return (<div className="main-left-sidebar"><div className="user_profile"><div className="user-pro-img"><imgid="company-img"src={companyImg}alt=""/><div className="add-dp" id="OpenImgUpload"><buttonclassName="btn-image-open"onClick={showModal}><i className="fa fa-camera" /></button></div></div><div className="user_pro_status"><ul className="flw-status list-unstyled"><li><span>Seguidores</span><b>{followers}</b></li></ul></div><SocialNetworkssocialNetworksUrl={socialNetworksUrl}/></div></div>)}export default ProfileInfo