Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SeanRoberts/0ab8380bb6b269b7d67554f81171573e to your computer and use it in GitHub Desktop.
Save SeanRoberts/0ab8380bb6b269b7d67554f81171573e to your computer and use it in GitHub Desktop.
render() {
let viewApplicantsButton = <noscript />;
if (record.applicants.length && !record.offer && !record.hiree) {
viewApplicantsButton = (
<div className="record__details-item record__details-item--final">
<button
className="record__action"
onClick={() => this._toggleApplicantList()}>
{this.state.isApplicantListOpen ? 'Hide ' : 'View '}
Applicants
</button>
</div>
);
}
return <div>{viewApplicantsButton}</div>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment