Rev 5795 | Rev 5949 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React, { useEffect } from 'react'
import { getData } from '../../helpers/fetchHelpers'
import CoverSection from '../components/CoverSection/CoverSection'
import ProfileInfo from '../components/ProfileInfo/ProfileInfo'
const ProfileView = ({ urlVars }) => {
const {
routeWebsite,
routeCompanySize,
routeIndustry,
routeExtended,
routeSocialNetworks,
routeLocationAdd,
routeFoundationYear,
routeImageUpload,
routeCoverUpload,
routeFooterUpload,
routeHeaderUpload,
companyId,
cover,
followers,
image
} = urlVars
useEffect(() => {
getData(routeCoverUpload)
.then(resp => console.log(resp))
.catch(err => console.log(err))
}, []);
return (
<>
<section className="content-header">
<div className="container-fluid">
<div className="row mb-2">
<div className="col-sm-12">
<h1>Perfil</h1>
</div>
</div>
</div>
</section>
<CoverSection
companyId={companyId}
cover={cover}
/>
<ProfileInfo
companyId={companyId}
socialNetworksUrl={routeSocialNetworks}
followers={followers}
image={image}
/>
</>
)
}
export default ProfileView