fix(client): pass correct props to Camper component
This commit is contained in:
@ -137,17 +137,17 @@ function Profile({ user, isSessionUser }) {
|
|||||||
<Grid>
|
<Grid>
|
||||||
{isSessionUser ? renderSettingsButton() : null}
|
{isSessionUser ? renderSettingsButton() : null}
|
||||||
<Camper
|
<Camper
|
||||||
about={showAbout && about}
|
about={showAbout ? about : null}
|
||||||
githubProfile={githubProfile}
|
githubProfile={githubProfile}
|
||||||
isGithub={isGithub}
|
isGithub={isGithub}
|
||||||
isLinkedIn={isLinkedIn}
|
isLinkedIn={isLinkedIn}
|
||||||
isTwitter={isTwitter}
|
isTwitter={isTwitter}
|
||||||
isWebsite={isWebsite}
|
isWebsite={isWebsite}
|
||||||
linkedin={linkedin}
|
linkedin={linkedin}
|
||||||
location={showLocation && location}
|
location={showLocation ? location : null}
|
||||||
name={showName && name}
|
name={showName ? name : null}
|
||||||
picture={picture}
|
picture={picture}
|
||||||
points={showPoints && points}
|
points={showPoints ? points : null}
|
||||||
twitter={twitter}
|
twitter={twitter}
|
||||||
username={username}
|
username={username}
|
||||||
website={website}
|
website={website}
|
||||||
@ -157,11 +157,7 @@ function Profile({ user, isSessionUser }) {
|
|||||||
{showCerts ? <Certifications username={username} /> : null}
|
{showCerts ? <Certifications username={username} /> : null}
|
||||||
{showPortfolio ? <Portfolio portfolio={portfolio} /> : null}
|
{showPortfolio ? <Portfolio portfolio={portfolio} /> : null}
|
||||||
{showTimeLine ? (
|
{showTimeLine ? (
|
||||||
<Timeline
|
<Timeline completedMap={completedChallenges} username={username} />
|
||||||
className='timelime-container'
|
|
||||||
completedMap={completedChallenges}
|
|
||||||
username={username}
|
|
||||||
/>
|
|
||||||
) : null}
|
) : null}
|
||||||
</Grid>
|
</Grid>
|
||||||
</Fragment>
|
</Fragment>
|
||||||
|
Reference in New Issue
Block a user