Skip to content

Commit 560a6f4

Browse files
committed
Employer only sees info
1 parent 7654822 commit 560a6f4

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

client/src/components/SeekerProfile/SeekerProfile.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,22 @@ class SeekerProfile extends React.Component {
164164
</OpenStyle>
165165
</OpenContainer>
166166
{this.props.currentSignedInUser ? (
167-
<Info>
168-
<div className="info">
169-
<img src={emailPic} alt="paper plane" />
170-
<p>{this.state.email}</p>
171-
</div>
172-
<div className="info">
173-
<img src={phonePic} alt="phone number" />
174-
<p>{this.state.phoneNumber}</p>
175-
</div>
176-
</Info>
167+
this.props.currentSignedInUser.role === 'company' ? (
168+
<Info>
169+
<div className="info">
170+
<img src={emailPic} alt="paper plane" />
171+
<p>{this.state.email}</p>
172+
</div>
173+
<div className="info">
174+
<img src={phonePic} alt="phone number" />
175+
<p>{this.state.phoneNumber}</p>
176+
</div>
177+
</Info>
178+
) : (
179+
<SignEmployer>
180+
<p onClick={this.signUpEmployer}>Sign Up Employer</p>
181+
</SignEmployer>
182+
)
177183
) : (
178184
<SignEmployer>
179185
<p onClick={this.signUpEmployer}>Sign Up Employer</p>

0 commit comments

Comments
 (0)