Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {user.location ? (
- <p className="info-location">{user.location}</p>
- ) : (
- isCurrentUser && <AddInfo handleClick={toggleEdit} text="Add location" />
- )}
- {user.title ? (
- <p className="info-title">{getTitleString(user.title)}</p>
- ) : (
- isCurrentUser && (
- <AddInfo handleClick={toggleEdit} text="Are you a reader or writer?" />
- )
- )}
Add Comment
Please, Sign In to add comment